projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af3981
)
Btrfs: no slashes in subvolume names
author
Chris Mason
<chris.mason@oracle.com>
Tue, 12 Jun 2007 12:21:35 +0000
(08:21 -0400)
committer
David Woodhouse
<dwmw2@hera.kernel.org>
Tue, 12 Jun 2007 12:21:35 +0000
(08:21 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index
62a3a77
..
1cabc19
100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-1831,6
+1831,8
@@
int btrfs_ioctl(struct inode *inode, struct file *filp, unsigned int
namelen = strlen(vol_args.name);
if (namelen > BTRFS_VOL_NAME_MAX)
return -EINVAL;
+ if (strchr(vol_args.name, '/'))
+ return -EINVAL;
path = btrfs_alloc_path();
if (!path)
return -ENOMEM;