]> git.ipfire.org Git - people/arne_f/kernel.git/commit
Btrfs: deny sys_link across subvolumes.
authorTARUISI Hiroaki <taruishi.hiroak@jp.fujitsu.com>
Thu, 12 Nov 2009 07:14:26 +0000 (07:14 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:19:59 +0000 (13:19 -0700)
commit8db426bbfeef206a8cd6002d6790f936f3071f0c
treec7f5db164861752e6f993d0c1ec2c800e11e10cf
parentf09a3eb5f7c42159bfa53a03779741487b5336a7
Btrfs: deny sys_link across subvolumes.

commit 4a8be425a8fb8fbb5d881eb55fa6634c3463b9c9 upstream.

I rebased Christian Parpart's patch to deny hard link across
subvolumes. Original patch modifies also btrfs_rename, but
I excluded it because we can move across subvolumes now and
it make no problem.
-----------------

Hard link across subvolumes should not allowed in Btrfs.
btrfs_link checks root of 'to' directory is same as root
of 'from' file. If not same, btrfs_link returns -EPERM.

Signed-off-by: TARUISI Hiroaki <taruishi.hiroak@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/inode.c