aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorGabríel Arthúr Pétursson <gabriel@system.is>2015-09-28 18:32:41 -0400
committerChris Mason <clm@fb.com>2015-10-26 22:38:29 -0400
commitdee32d0ac3719ef8d640efaf0884111df444730f (patch)
tree26664ba9632bdac8539e8cfec61807f8e7d120bd /include/uapi/linux
parent12907fc79818a62a2478f84f7795afa774bf7f9c (diff)
btrfs: add balance filter for stripes
Balance block groups which have the given number of stripes, defined by a range min..max. This is useful to selectively rebalance only chunks that do not span enough devices, applies to RAID0/10/5/6. Signed-off-by: Gabríel Arthúr Pétursson <gabriel@system.is> [ renamed bargs members, added to the UAPI, wrote the changelog ] Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/btrfs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h
index 11f13108b78b..17a94704b183 100644
--- a/include/uapi/linux/btrfs.h
+++ b/include/uapi/linux/btrfs.h
@@ -229,7 +229,15 @@ struct btrfs_balance_args {
229 __u32 limit_max; 229 __u32 limit_max;
230 }; 230 };
231 }; 231 };
232 __u64 unused[7]; 232
233 /*
234 * Process chunks that cross stripes_min..stripes_max devices,
235 * BTRFS_BALANCE_ARGS_STRIPES_RANGE
236 */
237 __le32 stripes_min;
238 __le32 stripes_max;
239
240 __u64 unused[6];
233} __attribute__ ((__packed__)); 241} __attribute__ ((__packed__));
234 242
235/* report balance progress to userspace */ 243/* report balance progress to userspace */