summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorWanlong Gao <gaowanlong@cn.fujitsu.com>2012-05-14 18:38:25 +0800
committerRichard W.M. Jones <rjones@redhat.com>2012-05-14 13:21:53 +0100
commit18451abdf5b3618750af11da6579db547b266b8d (patch)
treeb1123c5d55fbdb23c51a3ac1c1b5d14d80cf584d /generator
parenta75020a06674a4ec77712c1d8000b51eac53f454 (diff)
downloadlibguestfs-18451abdf5b3618750af11da6579db547b266b8d.tar.gz
libguestfs-18451abdf5b3618750af11da6579db547b266b8d.tar.xz
libguestfs-18451abdf5b3618750af11da6579db547b266b8d.zip
New API: add new api btrfs-set-seeding to enable or disable seeding.
Add the new API btrfs-set-seeding to support the seeding-device feature for btrfs. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_actions.ml10
1 files changed, 10 insertions, 0 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 6948dab3..fc2df423 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -7222,6 +7222,16 @@ mounted at C<fs>. If C<devices> is an empty list, this does nothing.");
Remove the C<devices> from the btrfs filesystem mounted at C<fs>.
If C<devices> is an empty list, this does nothing.");
+ ("btrfs_set_seeding", (RErr, [Device "device"; Bool "seeding"], []), 331, [Optional "btrfs"],
+ [InitPartition, IfAvailable "btrfs", TestRun (
+ [["mkfs_btrfs"; "/dev/sda1"; ""; ""; "NOARG"; ""; "NOARG"; "NOARG"; ""; ""];
+ ["btrfs_set_seeding"; "/dev/sda1"; "true"];
+ ["btrfs_set_seeding"; "/dev/sda1"; "false"]])],
+ "enable or disable the seeding feature of device",
+ "\
+Enable or disable the seeding feature of a device that contains
+a btrfs filesystem.");
+
]
let all_functions = non_daemon_functions @ daemon_functions