diff options
author | Richard Jones <rjones@redhat.com> | 2009-05-12 17:16:59 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-05-12 17:16:59 +0100 |
commit | 45d78361d791f4a752fca9472b81bdc75f9f92a4 (patch) | |
tree | a9e2f22bca4bb8958d818f100bbba65a5ec89b4c /java/com | |
parent | 8a7a6180a865e6895fa531865c5016d793271dfe (diff) | |
download | libguestfs-45d78361d791f4a752fca9472b81bdc75f9f92a4.tar.gz libguestfs-45d78361d791f4a752fca9472b81bdc75f9f92a4.tar.xz libguestfs-45d78361d791f4a752fca9472b81bdc75f9f92a4.zip |
Test the 'command' and 'command_lines' functions thoroughly.
Diffstat (limited to 'java/com')
-rw-r--r-- | java/com/redhat/et/libguestfs/GuestFS.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/java/com/redhat/et/libguestfs/GuestFS.java b/java/com/redhat/et/libguestfs/GuestFS.java index 26f1aaa6..70efb8d0 100644 --- a/java/com/redhat/et/libguestfs/GuestFS.java +++ b/java/com/redhat/et/libguestfs/GuestFS.java @@ -1646,6 +1646,13 @@ public class GuestFS { * Subsequent elements are parameters. The list must be * non-empty (ie. must contain a program name). * + * The return value is anything printed to *stdout* by the + * command. + * + * If the command returns a non-zero exit status, then this + * function returns an error message. The error message + * string is the content of *stderr* from the command. + * * The $PATH environment variable will contain at least * "/usr/bin" and "/bin". If you require a program from * another location, you should provide the full path in @@ -1657,6 +1664,10 @@ public class GuestFS { * ensure all filesystems that are needed are mounted at * the right locations. * + * Because of the message protocol, there is a transfer + * limit of somewhere between 2MB and 4MB. To transfer + * large files you should use FTP. + * * @throws LibGuestFSException */ public String command (String[] arguments) @@ -1675,6 +1686,10 @@ public class GuestFS { * This is the same as "g.command", but splits the result * into a list of lines. * + * Because of the message protocol, there is a transfer + * limit of somewhere between 2MB and 4MB. To transfer + * large files you should use FTP. + * * @throws LibGuestFSException */ public String[] command_lines (String[] arguments) |