X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Fguestfs.py;h=37dc80f763534e66554801cfc88b69339198e33a;hb=09c42a97daeae4fdccf40374620e533469a281a6;hp=9cf9d8817735aecfcb3ee7617c4aae4efb9205bb;hpb=0faa5dde7b992ba11bb88f77b3424676c7c492e4;p=libguestfs.git diff --git a/python/guestfs.py b/python/guestfs.py index 9cf9d88..37dc80f 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -279,6 +279,15 @@ class GuestFS: """ return libguestfsmod.set_ready (self._o) + def end_busy (self): + u"""This sets the state to "READY", or if in "CONFIG" then + it leaves the state as is. This is only used when + implementing actions using the low-level API. + + For more information on states, see guestfs(3). + """ + return libguestfsmod.end_busy (self._o) + def mount (self, device, mountpoint): u"""Mount a guest disk at a position in the filesystem. Block devices are named "/dev/sda", "/dev/sdb" and so @@ -811,6 +820,13 @@ 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 @@ -821,6 +837,10 @@ class GuestFS: the correct places. It is the caller's responsibility to 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. """ return libguestfsmod.command (self._o, arguments) @@ -829,6 +849,10 @@ class GuestFS: into a list of lines. This function returns a list of strings. + + Because of the message protocol, there is a transfer + limit of somewhere between 2MB and 4MB. To transfer + large files you should use FTP. """ return libguestfsmod.command_lines (self._o, arguments)