X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=guestfish-actions.pod;h=da4bbaeb7f2811860aaf410bdb56e44c82b5e11c;hb=b36dab0552df45d3d08aeeaf931294d091516f1f;hp=d4c0401c38ee43d3e8cdcf3ddead95850705ab76;hpb=b348eacbc4d84337856cf7cca518d61c63e92631;p=libguestfs.git diff --git a/guestfish-actions.pod b/guestfish-actions.pod index d4c0401..da4bbae 100644 --- a/guestfish-actions.pod +++ b/guestfish-actions.pod @@ -289,13 +289,58 @@ Return the contents of the file named C. Note that this function cannot correctly handle binary files (specifically, files containing C<\0> character which is treated -as end of string). For those you need to use the C +as end of string). For those you need to use the C function which has a more complex interface. Because of the message protocol, there is a transfer limit of somewhere between 2MB and 4MB. To transfer large files you should use FTP. +=head2 checksum + + checksum csumtype path + +This call computes the MD5, SHAx or CRC checksum of the +file named C. + +The type of checksum to compute is given by the C +parameter which must have one of the following values: + +=over 4 + +=item C + +Compute the cyclic redundancy check (CRC) specified by POSIX +for the C command. + +=item C + +Compute the MD5 hash (using the C program). + +=item C + +Compute the SHA1 hash (using the C program). + +=item C + +Compute the SHA224 hash (using the C program). + +=item C + +Compute the SHA256 hash (using the C program). + +=item C + +Compute the SHA384 hash (using the C program). + +=item C + +Compute the SHA512 hash (using the C program). + +=back + +The checksum is returned as a printable string. + =head2 chmod chmod mode path @@ -358,6 +403,19 @@ The first character of C string must be a C<-> (dash). C can be NULL. +=head2 download + + download remotefilename (filename|-) + +Download file C and save it as C +on the local machine. + +C can also be a named pipe. + +See also C, C. + +Use C<-> instead of a filename to read/write from stdin/stdout. + =head2 exists exists path @@ -394,12 +452,39 @@ Return the current search path. This is always non-NULL. If it wasn't set already, then this will return the default path. +=head2 get-state + + get-state + +This returns the current state as an opaque integer. This is +only useful for printing debug and internal error messages. + +For more information on states, see L. + =head2 get-verbose get-verbose This returns the verbose messages flag. +=head2 is-busy + + is-busy + +This returns true iff this handle is busy processing a command +(in the C state). + +For more information on states, see L. + +=head2 is-config + + is-config + +This returns true iff this handle is being configured +(in the C state). + +For more information on states, see L. + =head2 is-dir is-dir path @@ -420,6 +505,24 @@ other objects like directories. See also C. +=head2 is-launching + + is-launching + +This returns true iff this handle is launching the subprocess +(in the C state). + +For more information on states, see L. + +=head2 is-ready + + is-ready + +This returns true iff this handle is ready to accept commands +(in the C state). + +For more information on states, see L. + =head2 kill-subprocess kill-subprocess @@ -722,6 +825,50 @@ underlying disk image. You should always call this if you have modified a disk image, before closing the handle. +=head2 tar-in + + tar-in (tarfile|-) directory + +This command uploads and unpacks local file C (an +I tar file) into C. + +To upload a compressed tarball, use C. + +Use C<-> instead of a filename to read/write from stdin/stdout. + +=head2 tar-out + + tar-out directory (tarfile|-) + +This command packs the contents of C and downloads +it to local file C. + +To download a compressed tarball, use C. + +Use C<-> instead of a filename to read/write from stdin/stdout. + +=head2 tgz-in + + tgz-in (tarball|-) directory + +This command uploads and unpacks local file C (a +I tar file) into C. + +To upload an uncompressed tarball, use C. + +Use C<-> instead of a filename to read/write from stdin/stdout. + +=head2 tgz-out + + tgz-out directory (tarball|-) + +This command packs the contents of C and downloads +it to local file C. + +To download an uncompressed tarball, use C. + +Use C<-> instead of a filename to read/write from stdin/stdout. + =head2 touch touch path @@ -758,6 +905,19 @@ This unmounts all mounted filesystems. Some internal mounts are not unmounted by this call. +=head2 upload + + upload (filename|-) remotefilename + +Upload local file C to C on the +filesystem. + +C can also be a named pipe. + +See also C. + +Use C<-> instead of a filename to read/write from stdin/stdout. + =head2 vgcreate vgcreate volgroup physvols,...