[PATCH] btrfs: return EPERM in btrfs_rm_device()

2013-03-01 Thread Jerry Snitselaar
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

btrfs-progs: question about error message

2013-02-05 Thread Jerry Snitselaar
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