summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-09-08 09:58:37 +0100
committerRichard Jones <rjones@redhat.com>2010-09-08 10:24:22 +0100
commit422a8d85d21fc29ee75d27917fd03a164048bfc9 (patch)
tree066d8cdb19660c6bd60a8f13d58b5a3304b8b6c3 /src
parent45f72c804b6fa76d94b7195bd5faea8c0d6f6b3d (diff)
downloadlibguestfs-422a8d85d21fc29ee75d27917fd03a164048bfc9.tar.gz
libguestfs-422a8d85d21fc29ee75d27917fd03a164048bfc9.tar.xz
libguestfs-422a8d85d21fc29ee75d27917fd03a164048bfc9.zip
fish: Add guestfish -N lv for creating disks with LVs.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 2f2e3911..363e78f7 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -5651,6 +5651,18 @@ let prepopts = [
DOS-style) partition table and an ext2 filesystem.
These defaults can be changed by supplying optional parameters.");
+
+ ("lv",
+ "create a disk with logical volume",
+ [ "name", "/dev/VG/LV", "the name of the VG and LV to use";
+ "size", "100M", "the size of the disk image";
+ "partition", "mbr", "partition table type" ],
+ " Create a disk with a single partition, set up the partition as an
+ LVM2 physical volume, and place a volume group and logical volume
+ on there. This defaults to creating a 100MB disk with the VG and
+ LV called /dev/VG/LV. You can change the name of the VG and LV
+ by supplying an alternate name as the first optional parameter.");
+
]
(* Used to memoize the result of pod2text. *)