Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287901
b: refs/heads/master
c: 16780ca
h: refs/heads/master
i:
  287899: 7e9388b
v: v3
  • Loading branch information
Chris Mason committed Feb 23, 2012
1 parent 5e1d0c1 commit 26f095b
Show file tree
Hide file tree
Showing 2 changed files with 7 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: a6b0d5c8dbfd428717fc4db4c36757783f391c7b
refs/heads/master: 16780cabb877dbd0c8c5e9ff9bdebd6c5bdd1a7b
6 changes: 6 additions & 0 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,12 @@ static noinline int btrfs_ioctl_snap_create_transid(struct file *file,
goto out;
}

if (name[0] == '.' &&
(namelen == 1 || (name[1] == '.' && namelen == 2))) {
ret = -EEXIST;
goto out;
}

if (subvol) {
ret = btrfs_mksubvol(&file->f_path, name, namelen,
NULL, transid, readonly);
Expand Down

0 comments on commit 26f095b

Please sign in to comment.