X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=generator%2Fgenerator_actions.ml;h=5624dec10f02ce22635d3b069a0c7901ff538313;hb=6d75ce8e6ca1f3f0a946ee4e214f6d2bff07adc4;hp=a405fd4a4eeb0d4925dde9197f5fac9b9018671b;hpb=8022d46e5e2d9c3ab664ace6c9f185976e34dc20;p=libguestfs.git diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index a405fd4..5624dec 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -4186,7 +4186,7 @@ This gets the SELinux security context of the daemon. See the documentation about SELINUX in L, and C"); - ("mkfs_b", (RErr, [String "fstype"; Int "blocksize"; Device "device"], []), 187, [], + ("mkfs_b", (RErr, [String "fstype"; Int "blocksize"; Device "device"], []), 187, [DeprecatedBy "mkfs_opts"], [InitEmpty, Always, TestOutput ( [["part_disk"; "/dev/sda"; "mbr"]; ["mkfs_b"; "ext2"; "4096"; "/dev/sda1"]; @@ -5606,6 +5606,33 @@ not refer to a logical volume. See also C."); + ("mkfs_opts", (RErr, [String "fstype"; Device "device"], [Int "blocksize"]), 278, [], + [InitEmpty, Always, TestOutput ( + [["part_disk"; "/dev/sda"; "mbr"]; + ["mkfs_opts"; "ext2"; "/dev/sda1"; "4096"]; + ["mount_options"; ""; "/dev/sda1"; "/"]; + ["write"; "/new"; "new file contents"]; + ["cat"; "/new"]], "new file contents")], + "make a filesystem", + "\ +This function creates a filesystem on C. The filesystem +type is C, for example C. + +The optional arguments are: + +=over 4 + +=item C + +The filesystem block size. Supported block sizes depend on the +filesystem type, but typically they are C<1024>, C<2048> or C<4096> +for Linux ext2/3 filesystems. + +For VFAT and NTFS the C parameter is treated as +the requested cluster size. + +=back"); + ] let all_functions = non_daemon_functions @ daemon_functions