kdave / btrfs-progs

Development of userspace BTRFS tools
GNU General Public License v2.0
527 stars 239 forks source link

Checking unallocated space before converting profiles #830

Open emanuc opened 6 days ago

emanuc commented 6 days ago

Hello. On the Fedora forum, there's a user who reported issues with metadata conversion in RAID 1 after adding a disk. The problem is that the "skip_balance" option doesn't seem to work for the user and is in an unresolved state because the filesystem is in read-only mode. They can neither remove files nor add other devices to complete the balancing.

This could be avoided by checking unallocated space and cancelling the balance if there isn't enough space for the conversion.

Is this feasible? Thank you