aboutsummaryrefslogtreecommitdiffstats
path: root/ioctl.h
diff options
context:
space:
mode:
authorGabríel Arthúr Pétursson <gabriel@system.is>2015-09-28 22:33:04 +0000
committerDavid Sterba <dsterba@suse.com>2016-01-12 15:01:04 +0100
commit0826a8ddb90e577c5c359d8bca2571f167029f7e (patch)
tree43cad92e0e3f810d3df3c3d07edb421f1723d5e4 /ioctl.h
parent7dff5c9c9b980e9848e1716434606eb01c16914e (diff)
downloadbtrfs-progs-0826a8ddb90e577c5c359d8bca2571f167029f7e.tar.gz
btrfs-progs-0826a8ddb90e577c5c359d8bca2571f167029f7e.tar.xz
btrfs-progs-0826a8ddb90e577c5c359d8bca2571f167029f7e.zip
btrfs-progs: balance: add stripes filter
Add new balance filter 'stripes=<range>' to process only chunks that are spread accross given number of chunks. The range minimum and maximum are inclusive. Signed-off-by: Gabríel Arthúr Pétursson <gabriel@system.is> [ reworked a bit to use the range helpers, dropped the single value for stripes ] Signed-off-by: David Sterba <dsterba@suse.com>
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 e5cf323..0df2444 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -239,7 +239,9 @@ struct btrfs_balance_args {
__u32 limit_max;
};
};
- __u64 unused[7];
+ __u32 stripes_min;
+ __u32 stripes_max;
+ __u64 unused[6];
} __attribute__ ((__packed__));
/* report balance progress to userspace */