Re: [PATCH] btrfs: return EXDEV when linking from different subvolumes

2011-03-29 Thread Harik
On Tue, Mar 22, 2011 at 1:20 PM, Mark Fasheh wrote: > btrfs_link returns EPERM if a cross-subvolume link is attempted. > > However, in this case I believe EXDEV to be the more appropriate value. > From the link(2) man page: This makes makes sense, that's the behavior link(2) normally returns. How

[PATCH] btrfs: return EXDEV when linking from different subvolumes

2011-03-22 Thread Mark Fasheh
btrfs_link returns EPERM if a cross-subvolume link is attempted. However, in this case I believe EXDEV to be the more appropriate value. >From the link(2) man page: EXDEV oldpath and newpath are not on the same mounted file system. (Linux permits a file system to be mounted at multiple p