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>
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -229,7 +229,15 @@ struct btrfs_balance_args { · 228 unmodified lines | ||
| 229 | 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 | 241 | } __attribute__ ((__packed__)); |
| 234 | 242 | |
| 235 | 243 | /* report balance progress to userspace */ |