History

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>

Gabríel Arthúr Pétursson committed 11 years ago

Commit dee32d01 parent 12907fc4 files · +37 −2Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/btrfs.h+9−1
@@ -229,7 +229,15 @@ struct btrfs_balance_args { · 228 unmodified lines
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 */