summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorNikita A Menkovich <menkovich@gmail.com>2011-01-26 15:34:01 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-01-26 15:34:01 +0000
commit92b74729e2608a0266fff3a36d87cebefe66d833 (patch)
tree32a5a826b2c3a7c35a34a7f9e54ab2d0cd732dde /generator
parentdd653336cc34c2e8640aa7e19174a3e339049dc2 (diff)
downloadlibguestfs-92b74729e2608a0266fff3a36d87cebefe66d833.tar.gz
libguestfs-92b74729e2608a0266fff3a36d87cebefe66d833.tar.xz
libguestfs-92b74729e2608a0266fff3a36d87cebefe66d833.zip
mkfs-opts: Add optional "features" parameter.
This allows the -O parameter to be added to the mkfs command line. This is used to select filesystem features.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_actions.ml15
1 files changed, 13 insertions, 2 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 94ad5598..77f13580 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -5683,10 +5683,10 @@ not refer to a logical volume.
See also C<guestfs_is_lv>.");
- ("mkfs_opts", (RErr, [String "fstype"; Device "device"], [Int "blocksize"]), 278, [],
+ ("mkfs_opts", (RErr, [String "fstype"; Device "device"], [Int "blocksize"; String "features"]), 278, [],
[InitEmpty, Always, TestOutput (
[["part_disk"; "/dev/sda"; "mbr"];
- ["mkfs_opts"; "ext2"; "/dev/sda1"; "4096"];
+ ["mkfs_opts"; "ext2"; "/dev/sda1"; "4096"; ""];
["mount_options"; ""; "/dev/sda1"; "/"];
["write"; "/new"; "new file contents"];
["cat"; "/new"]], "new file contents")],
@@ -5710,6 +5710,17 @@ the requested cluster size.
For UFS block sizes, please see L<mkfs.ufs(8)>.
+=item C<features>
+
+This passes the C<-O> parameter to the external mkfs program.
+
+For certain filesystem types, this allows extra filesystem
+features to be selected. See L<mke2fs(8)> and L<mkfs.ufs(8)>
+for more details.
+
+You cannot use this optional parameter with the C<gfs> or
+C<gfs2> filesystem type.
+
=back");
("getxattr", (RBufferOut "xattr", [Pathname "path"; String "name"], []), 279, [Optional "linuxxattrs"],