X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=guestfs-actions.pod;h=fb7c3db2fdd58a92c72a36743f3da082085abbcb;hb=62df226f26bd6ac3c481a7790eb89d760d2f0386;hp=260cb4f263a3eca84b2a728ff8fb13716ca29875;hpb=b03ee3675bed8d739ae722ed8c030ae02b3cb0ed;p=libguestfs.git diff --git a/guestfs-actions.pod b/guestfs-actions.pod index 260cb4f..fb7c3db 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -582,6 +582,25 @@ 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, and note that multiple +status codes can be summed together. + +It is entirely equivalent to running C. +Note that checking or repairing NTFS volumes is not supported +(by linux-ntfs). + +On error this function returns -1. + =head2 guestfs_get_autosync int guestfs_get_autosync (guestfs_h *handle); @@ -1099,9 +1118,13 @@ This function returns 0 on success or -1 on error. int autosync); If C is true, this enables autosync. Libguestfs will make a -best effort attempt to run C when the handle is closed +best effort attempt to run C followed by +C when the handle is closed (also if the program exits without closing handles). +This is disabled by default (except in guestfish where it is +enabled by default). + This function returns 0 on success or -1 on error. =head2 guestfs_set_busy @@ -1484,3 +1507,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. +