summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-04-19 16:31:24 +0100
committerRichard Jones <rjones@redhat.com>2010-04-19 16:31:24 +0100
commit87e49e7e87e570537f04e34178c9c6d2b876c16c (patch)
treec117249a0e7196b4e3825b7ef690294de1365311 /src
parent3119aa687d4d594b50ee9df5ff6e8d709eb7ca85 (diff)
downloadlibguestfs-87e49e7e87e570537f04e34178c9c6d2b876c16c.tar.gz
libguestfs-87e49e7e87e570537f04e34178c9c6d2b876c16c.tar.xz
libguestfs-87e49e7e87e570537f04e34178c9c6d2b876c16c.zip
New API: debug-upload (not a formal part of the API/ABI).
Allow arbitrary files to be uploaded into the appliance, but only when --enable-debug-command is enabled. This lets you run shell scripts, like this: ><fs> debug-upload -<<EOF /tmp/script.sh 0700 #!/bin/sh - # ... EOF ><fs> debug sh "/tmp/script.sh"
Diffstat (limited to 'src')
-rw-r--r--src/MAX_PROC_NR2
-rwxr-xr-xsrc/generator.ml11
2 files changed, 12 insertions, 1 deletions
diff --git a/src/MAX_PROC_NR b/src/MAX_PROC_NR
index eb08bc0b..f06fa6c9 100644
--- a/src/MAX_PROC_NR
+++ b/src/MAX_PROC_NR
@@ -1 +1 @@
-240
+241
diff --git a/src/generator.ml b/src/generator.ml
index 580cb143..77fa0530 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -4509,6 +4509,17 @@ is the same as the L<augtool(1)> C<clear> command.");
Return the current umask. By default the umask is C<022>
unless it has been set by calling C<guestfs_umask>.");
+ ("debug_upload", (RErr, [FileIn "filename"; String "tmpname"; Int "mode"]), 241, [],
+ [],
+ "upload a file to the appliance (internal use only)",
+ "\
+The C<guestfs_debug_upload> command uploads a file to
+the libguestfs appliance.
+
+There is no comprehensive help for this command. You have
+to look at the file C<daemon/debug.c> in the libguestfs source
+to find out what it is for.");
+
]
let all_functions = non_daemon_functions @ daemon_functions