From b6babea6d477c2fa3c40c6a41ccde34971a5c908 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 29 Jul 2011 15:31:05 +0100 Subject: [PATCH] doc: Fix spec for copyup/copydown to describe actual behaviours --- doc/README.virtualisation-server | 24 +++++++++++++++++------- {virt-subproc => lib}/VirtSubproc.py | 0 2 files changed, 17 insertions(+), 7 deletions(-) rename {virt-subproc => lib}/VirtSubproc.py (100%) diff --git a/doc/README.virtualisation-server b/doc/README.virtualisation-server index 7d40ef5..c077e5a 100644 --- a/doc/README.virtualisation-server +++ b/doc/README.virtualisation-server @@ -162,9 +162,9 @@ Protocol response ok - Executes the command (args separated by commas, everything - url-encoded). stdin, stdout, stderr are files on the testbed - (must be files, not pipes). + Executes the command (args separated by commas, everything including + filenames and env var names and values url-encoded). stdin, stdout, + stderr are files on the testbed (must be files, not pipes). Currently defined keyword arguments: @@ -198,11 +198,21 @@ Protocol that facility is available. * Commands - copydown - copyup + copydown + copyup - Like cp -dR --preserve=mode,timestamps exce[t across the testbed - boundary. + Either + + 1. Both paths end in `/', in which case the source must be an + existing directory. The destination directory is replaced with a + copy as if made by cp -dR --preserve=mode,timestamps except + across the testbed boundary. + + 2. Neither path ends in `/', in which case the source must be an + existing file. The data from the source file is written to the + destination as if via shell redirection; except that if for + copydown of an executable file, `chmod +x' is run on the + destination file after the copy. * Command diff --git a/virt-subproc/VirtSubproc.py b/lib/VirtSubproc.py similarity index 100% rename from virt-subproc/VirtSubproc.py rename to lib/VirtSubproc.py -- 2.30.2