X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=guestfish-actions.pod;h=c1981c5e4a151cc64a2b4316e65f34bd8f4a81a2;hb=89404ec0ba9781b55cb3a87689bcc519e7d73ea2;hp=a79e33638160aeb7eccff181024ea4d61d50b2e8;hpb=8f9f02d483b87c787d089cf9329f5f1b81d3a77e;p=libguestfs.git diff --git a/guestfish-actions.pod b/guestfish-actions.pod index a79e336..c1981c5 100644 --- a/guestfish-actions.pod +++ b/guestfish-actions.pod @@ -449,12 +449,41 @@ The exact command which runs is C. Note in particular that the filename is not prepended to the output (the C<-b> option). +=head2 fsck + + fsck fstype 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). + =head2 get-autosync get-autosync Get the autosync flag. +=head2 get-e2label + + get-e2label device + +This returns the ext2/3/4 filesystem label of the filesystem on +C. + +=head2 get-e2uuid + + get-e2uuid device + +This returns the ext2/3/4 filesystem UUID of the filesystem on +C. + =head2 get-path get-path @@ -629,6 +658,16 @@ and physical volumes. B. +=head2 lvremove + + lvremove 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. + =head2 lvs lvs @@ -730,6 +769,17 @@ This creates an LVM physical volume on the named C, where C should usually be a partition name such as C. +=head2 pvremove + + pvremove 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. + =head2 pvs pvs @@ -788,9 +838,36 @@ Remove the single directory C. set-autosync true|false 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). + +=head2 set-e2label + + set-e2label device label + +This sets the ext2/3/4 filesystem label of the filesystem on +C to C