diff options
author | Guangyu Sun <guangyu.sun@oracle.com> | 2014-03-11 11:24:18 -0700 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-03-20 17:15:27 -0700 |
commit | 72de6b5393c15c5228074008bbdc47e92bf6d4f7 (patch) | |
tree | 52c6f4e916b03033ff2cf2d0420ba616fb355eaa /drivers/iio | |
parent | ef66af101a261f1c86ef9ec3859ebd9c28ee2e54 (diff) | |
download | op-kernel-dev-72de6b5393c15c5228074008bbdc47e92bf6d4f7.zip op-kernel-dev-72de6b5393c15c5228074008bbdc47e92bf6d4f7.tar.gz |
Btrfs: return EPERM when deleting a default subvolume
The error message is confusing:
# btrfs sub delete /mnt/mysub/
Delete subvolume '/mnt/mysub'
ERROR: cannot delete '/mnt/mysub' - Directory not empty
The error message does not make sense to me: It's not about deleting a
directory but it's a subvolume, and it doesn't matter if the subvolume is
empty or not.
Maybe EPERM or is more appropriate in this case, combined with an explanatory
kernel log message. (e.g. "subvolume with ID 123 cannot be deleted because
it is configured as default subvolume.")
Reported-by: Koen De Wit <koen.de.wit@oracle.com>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions