summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.com>2011-03-22 17:20:26 +0000
committerroot <Chris Mason chris.mason@oracle.com>2011-03-28 05:37:42 -0400
commit3ab3564f018b9b265d0258e4a231794bacd5ad85 (patch)
tree53bb771dbb18194a9d13ce2c84c81f2ab834b7e5 /fs/btrfs/ctree.c
parent75e7cb7fe0c391561bd3af36515be3f3c64a04c6 (diff)
downloadop-kernel-dev-3ab3564f018b9b265d0258e4a231794bacd5ad85.zip
op-kernel-dev-3ab3564f018b9b265d0258e4a231794bacd5ad85.tar.gz
btrfs: return EXDEV when linking from different subvolumes
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 points, but link() does not work across different mount points, even if the same file system is mounted on both.) This matters because an application may have different behaviors based on return codes. Signed-off-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud