aboutsummaryrefslogtreecommitdiffstats
path: root/ioctl.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-05-07 17:38:00 +0200
committerDavid Sterba <dsterba@suse.cz>2014-08-22 14:55:26 +0200
commit266c81a910540d85cc47463b2a0cb16b0dd4e1e1 (patch)
tree166e14118dced9d29f676640c1c2632dbbe1b691 /ioctl.h
parent9875a101330dca0367cd8d2bac9567cfe8e56978 (diff)
downloadbtrfs-progs-266c81a910540d85cc47463b2a0cb16b0dd4e1e1.tar.gz
btrfs-progs-266c81a910540d85cc47463b2a0cb16b0dd4e1e1.tar.xz
btrfs-progs-266c81a910540d85cc47463b2a0cb16b0dd4e1e1.zip
btrfs-progs: balance filter: add limit of processed chunks
Add more control to the balance behaviour. Usage filter may not be finegrained enough and can lead to moving too many chunks at once. Another example use is in connection with drange+devid or vrange filters that allow to work with a specific chunk or even with a chunk on a given device. The limit filter applies last, the value of 0 means no limiting. CC: Ilya Dryomov <idryomov@gmail.com> CC: Hugo Mills <hugo@carfax.org.uk> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ioctl.h b/ioctl.h
index 9627e8d..f0fc060 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -194,7 +194,9 @@ struct btrfs_balance_args {
__u64 flags;
- __u64 unused[8];
+ __u64 limit;
+
+ __u64 unused[7];
} __attribute__ ((__packed__));
struct btrfs_balance_progress {