]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: raid56: allow the exact minimum number of devices for balance convert
authorDavid Sterba <dsterba@suse.com>
Fri, 17 May 2019 09:43:15 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:56 +0000 (13:34 +0200)
commitdc8fa6c7889264b6a73079cc655449c4c802ece3
treeb527a81176c81bc017404bb27cf9232fedb9a02f
parent93aca030d8e8fef658947ef33285213976fd6c52
btrfs: raid56: allow the exact minimum number of devices for balance convert

The minimum number of devices for RAID5 is 2, though this is only a bit
expensive RAID1, and for RAID6 it's 3, which is a triple copy that works
only 3 devices.

mkfs.btrfs allows that and mounting such filesystem also works, so the
conversion via balance filters is inconsistent with the others and we
should not prevent it.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c