diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-25 21:41:09 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-25 21:41:09 +0100 |
commit | aed0fa2c015e56a882fd6d4b759c82df08fc40d7 (patch) | |
tree | acfb96c7b0adbc10ab73236d30c644b85807ffdc /guestfs-actions.pod | |
parent | 58caa9e5f1dca3916178894876b938a6a45771b0 (diff) | |
download | libguestfs-aed0fa2c015e56a882fd6d4b759c82df08fc40d7.tar.gz libguestfs-aed0fa2c015e56a882fd6d4b759c82df08fc40d7.tar.xz libguestfs-aed0fa2c015e56a882fd6d4b759c82df08fc40d7.zip |
Generated code for lvremove, vgremove, pvremove.
Diffstat (limited to 'guestfs-actions.pod')
-rw-r--r-- | guestfs-actions.pod | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/guestfs-actions.pod b/guestfs-actions.pod index b945454a..7c5223bb 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -822,6 +822,19 @@ This function returns 0 on success or -1 on error. B<This command is dangerous. Without careful use you can easily destroy all your data>. +=head2 guestfs_lvremove + + int guestfs_lvremove (guestfs_h *handle, + const char *device); + +Remove an LVM logical volume C<device>, where C<device> is +the path to the LV, such as C</dev/VG/LV>. + +You can also remove all LVs in a volume group by specifying +the VG name, C</dev/VG>. + +This function returns 0 on success or -1 on error. + =head2 guestfs_lvs char **guestfs_lvs (guestfs_h *handle); @@ -968,6 +981,20 @@ as C</dev/sda1>. 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<device> so that LVM will no longer +recognise it. + +The implementation uses the C<pvremove> 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); @@ -1270,8 +1297,8 @@ This function returns 0 on success or -1 on error. char **guestfs_tune2fs_l (guestfs_h *handle, const char *device); -This returns the contents of the ext2 or ext3 filesystem superblock -on C<device>. +This returns the contents of the ext2, ext3 or ext4 filesystem +superblock on C<device>. It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage for more details. The list of fields returned isn't @@ -1331,6 +1358,18 @@ from the non-empty list of physical volumes C<physvols>. This function returns 0 on success or -1 on error. +=head2 guestfs_vgremove + + int guestfs_vgremove (guestfs_h *handle, + const char *vgname); + +Remove an LVM volume group C<vgname>, (for example C<VG>). + +This also forcibly removes all logical volumes in the volume +group (if any). + +This function returns 0 on success or -1 on error. + =head2 guestfs_vgs char **guestfs_vgs (guestfs_h *handle); |