Currently there are error paths in btrfs_rm_device() where EINVAL is
returned telling the user they passed an invalid argument even though
they passed a valid device. Change to return EPERM instead as the
operation is not permitted.
Signed-off-by: Jerry Snitselaar
---
fs/btrfs/volumes.c | 8
In some testing that was being done the tester ran into the following:
--
/mnt/abo is a filesystem in Raid1-configuration having two disks: /dev/sdg2
and /dev/sdg3. When trying to remove one of the devices, you get this error
on the console:
# btrfs device delete /dev/sdg2 /mnt/abo
ERROR: er