X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fgenerator.ml;h=6de2c7f267a2fa6a568b4ade7110f303f033dda4;hb=43504796252dc8c399f490927008fcbf7d97b27b;hp=58c39e611f890712fe465710814e2f2c0a91a2b8;hpb=58abe782bf7137526b4a5c7e6d5d2b145e3b09d2;p=libguestfs.git diff --git a/src/generator.ml b/src/generator.ml index 58c39e6..6de2c7f 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -4204,6 +4204,26 @@ To get other stats about a file, use C, C, C, C etc. To get the size of block devices, use C."); + ("lvrename", (RErr, [String "logvol"; String "newlogvol"]), 219, [], + [InitBasicFSonLVM, Always, TestOutputList ( + [["lvrename"; "/dev/VG/LV"; "/dev/VG/LV2"]; + ["lvs"]], ["/dev/VG/LV2"])], + "rename an LVM logical volume", + "\ +Rename a logical volume C with the new name C."); + + ("vgrename", (RErr, [String "volgroup"; String "newvolgroup"]), 220, [], + [InitBasicFSonLVM, Always, TestOutputList ( + [["umount"; "/"]; + ["vg_activate"; "false"; "VG"]; + ["vgrename"; "VG"; "VG2"]; + ["vg_activate"; "true"; "VG2"]; + ["mount"; "/dev/VG2/LV"; "/"]; + ["vgs"]], ["VG2"])], + "rename an LVM volume group", + "\ +Rename a volume group C with the new name C."); + ] let all_functions = non_daemon_functions @ daemon_functions