X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=guestfs-actions.pod;h=6fc51f0dbf93b02d4ec3d4cf540b0a0094a8ec12;hb=df189925e4a0e6f80b0aebbd78201db09a63daf3;hp=210e82518ecc3878c4ec11a4c054b40861032d53;hpb=f7e6ffa8a82f8a7a214a47ff32f46d9e893902d8;p=libguestfs.git diff --git a/guestfs-actions.pod b/guestfs-actions.pod index 210e825..6fc51f0 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -582,6 +582,42 @@ particular that the filename is not prepended to the output This function returns a string, or NULL on error. I. +=head2 guestfs_fsck + + int guestfs_fsck (guestfs_h *handle, + const char *fstype, + const char *device); + +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. + +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 int guestfs_get_autosync (guestfs_h *handle); @@ -1488,3 +1524,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. +