X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=perl%2Flib%2FSys%2FGuestfs.pm;h=90384da8a4b135f87562632bfa1acd137b2a192d;hb=b03ee3675bed8d739ae722ed8c030ae02b3cb0ed;hp=3d1493b59e82bf1dfc2b2127f8c6c50a2a9050c7;hpb=8f9f02d483b87c787d089cf9329f5f1b81d3a77e;p=libguestfs.git diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index 3d1493b..90384da 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -472,6 +472,16 @@ particular that the filename is not prepended to the output Get the autosync flag. +=item $label = $h->get_e2label ($device); + +This returns the ext2/3/4 filesystem label of the filesystem on +C. + +=item $uuid = $h->get_e2uuid ($device); + +This returns the ext2/3/4 filesystem UUID of the filesystem on +C. + =item $path = $h->get_path (); Return the current search path. @@ -608,6 +618,14 @@ and physical volumes. B. +=item $h->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. + =item @logvols = $h->lvs (); List all the logical volumes detected. This is the equivalent @@ -687,6 +705,15 @@ This creates an LVM physical volume on the named C, where C should usually be a partition name such as C. +=item $h->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. + =item @physvols = $h->pvs (); List all the physical volumes detected. This is the equivalent @@ -741,6 +768,25 @@ actions using the low-level API. For more information on states, see L. +=item $h->set_e2label ($device, $label); + +This sets the ext2/3/4 filesystem label of the filesystem on +C to C