X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=guestfs-actions.pod;h=a05436caa9240d53fff1d7b08eea09c713ee0e90;hb=65f77271f290eca1d8b91d16fc6e123037f86229;hp=07b35af935b8696f25d263c6b8ca93b54eb2b9b2;hpb=0703248d233744047515418893dac05ce013a642;p=libguestfs.git diff --git a/guestfs-actions.pod b/guestfs-actions.pod index 07b35af..a05436c 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -592,13 +592,30 @@ This runs the filesystem checker (fsck) on C which should have filesystem type C. The returned integer is the status. See L for the -list of status codes from C, and note that multiple -status codes can be summed together. +list of status codes from C. -It is entirely equivalent to running C. -Note that checking or repairing NTFS volumes is not supported +Notes: + +=over 4 + +=item * + +Multiple status codes can be summed together. + +=item * + +A non-zero return code can mean "success", for example if +errors have been corrected on the filesystem. + +=item * + +Checking or repairing NTFS volumes is not supported (by linux-ntfs). +=back + +This command is entirely equivalent to running C. + On error this function returns -1. =head2 guestfs_get_autosync @@ -674,6 +691,17 @@ This returns the verbose messages flag. This function returns a C truth value on success or -1 on error. +=head2 guestfs_grub_install + + int guestfs_grub_install (guestfs_h *handle, + const char *root, + const char *device); + +This command installs GRUB (the Grand Unified Bootloader) on +C, with the root directory being C. + +This function returns 0 on success or -1 on error. + =head2 guestfs_is_busy int guestfs_is_busy (guestfs_h *handle); @@ -1507,3 +1535,16 @@ 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 guestfs_zero + + int guestfs_zero (guestfs_h *handle, + const char *device); + +This command writes zeroes over the first few blocks of C. + +How many blocks are zeroed isn't specified (but it's I enough +to securely wipe the device). It should be sufficient to remove +any partition tables, filesystem superblocks and so on. + +This function returns 0 on success or -1 on error. +