diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-04-25 16:33:31 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-04-25 16:33:31 +0100 |
commit | 3cc9703f901e85a589692b9d0bf5ef7cbf72ed73 (patch) | |
tree | 122f50d83ccc0fd4182414ae7c7472c3ede86c86 /generator | |
parent | bd1a699c15f8854f366abacb47152212e20675ea (diff) | |
download | libguestfs-3cc9703f901e85a589692b9d0bf5ef7cbf72ed73.tar.gz libguestfs-3cc9703f901e85a589692b9d0bf5ef7cbf72ed73.tar.xz libguestfs-3cc9703f901e85a589692b9d0bf5ef7cbf72ed73.zip |
btrfs: Modify mkfs-btrfs API so it takes a list of devices.
btrfs filesystems can span multiple filesystems.
Note this changes the API, but this API has not yet been released in a
stable version of libguestfs.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/generator_actions.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 5bdc063d..56af327a 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -6929,7 +6929,7 @@ replacement =back"); - ("mkfs_btrfs", (RErr, [Device "device"], [OInt64 "allocstart"; OInt64 "bytecount"; OString "datatype"; OInt "leafsize"; OString "label"; OString "metadata"; OInt "nodesize"; OInt "sectorsize"]), 317, [Optional "btrfs"], + ("mkfs_btrfs", (RErr, [DeviceList "devices"], [OInt64 "allocstart"; OInt64 "bytecount"; OString "datatype"; OInt "leafsize"; OString "label"; OString "metadata"; OInt "nodesize"; OInt "sectorsize"]), 317, [Optional "btrfs"], [InitEmpty, Always, TestRun ( [["part_disk"; "/dev/sda"; "mbr"]; ["mkfs_btrfs"; "/dev/sda1"; "0"; "268435456"; "single"; "4096"; "test"; "single"; "4096"; "512"]])], @@ -6938,6 +6938,9 @@ replacement Create a btrfs filesystem, allowing all configurables to be set. For more information on the optional arguments, see L<mkfs.btrfs(8)>. +Since btrfs filesystems can span multiple devices, this takes a +non-empty list of devices. + To create general filesystems, use C<guestfs_mkfs_opts>."); ("get_e2attrs", (RString "attrs", [Pathname "file"], []), 318, [], |