Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177846
b: refs/heads/master
c: 4a8be42
h: refs/heads/master
v: v3
  • Loading branch information
TARUISI Hiroaki authored and Chris Mason committed Dec 17, 2009
1 parent 514f59b commit c968264
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7a3f7cadd9bdee569243f7ead9550aa16b60e07
refs/heads/master: 4a8be425a8fb8fbb5d881eb55fa6634c3463b9c9
4 changes: 4 additions & 0 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4462,6 +4462,10 @@ static int btrfs_link(struct dentry *old_dentry, struct inode *dir,
if (inode->i_nlink == 0)
return -ENOENT;

/* do not allow sys_link's with other subvols of the same device */
if (root->objectid != BTRFS_I(inode)->root->objectid)
return -EPERM;

/*
* 1 item for inode ref
* 2 items for dir items
Expand Down

0 comments on commit c968264

Please sign in to comment.