X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfs-actions.pod;h=6fc51f0dbf93b02d4ec3d4cf540b0a0094a8ec12;hp=b945454af8c43a1f0de39144a2c8c7c856f06f6b;hb=36f9dac1a2530b575dab9226f6ddd85e6e8c8590;hpb=8f9f02d483b87c787d089cf9329f5f1b81d3a77e diff --git a/guestfs-actions.pod b/guestfs-actions.pod index b945454..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); @@ -590,6 +626,28 @@ Get the autosync flag. This function returns a C truth value on success or -1 on error. +=head2 guestfs_get_e2label + + char *guestfs_get_e2label (guestfs_h *handle, + const char *device); + +This returns the ext2/3/4 filesystem label of the filesystem on +C. + +This function returns a string, or NULL on error. +I. + +=head2 guestfs_get_e2uuid + + char *guestfs_get_e2uuid (guestfs_h *handle, + const char *device); + +This returns the ext2/3/4 filesystem UUID of the filesystem on +C. + +This function returns a string, or NULL on error. +I. + =head2 guestfs_get_path const char *guestfs_get_path (guestfs_h *handle); @@ -822,6 +880,19 @@ This function returns 0 on success or -1 on error. B. +=head2 guestfs_lvremove + + int guestfs_lvremove (guestfs_h *handle, + const char *device); + +Remove an LVM logical volume C, where C is +the path to the LV, such as C. + +You can also remove all LVs in a volume group by specifying +the VG name, C. + +This function returns 0 on success or -1 on error. + =head2 guestfs_lvs char **guestfs_lvs (guestfs_h *handle); @@ -968,6 +1039,20 @@ as C. This function returns 0 on success or -1 on error. +=head2 guestfs_pvremove + + int guestfs_pvremove (guestfs_h *handle, + const char *device); + +This wipes a physical volume C so that LVM will no longer +recognise it. + +The implementation uses the C command which refuses to +wipe physical volumes that contain any volume groups, so you have +to remove those first. + +This function returns 0 on success or -1 on error. + =head2 guestfs_pvs char **guestfs_pvs (guestfs_h *handle); @@ -1050,9 +1135,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 @@ -1066,6 +1155,37 @@ For more information on states, see L. This function returns 0 on success or -1 on error. +=head2 guestfs_set_e2label + + int guestfs_set_e2label (guestfs_h *handle, + const char *device, + const char *label); + +This sets the ext2/3/4 filesystem label of the filesystem on +C to C