diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-06-12 08:21:35 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-06-12 08:21:35 -0400 |
commit | 8a712645c3fbbf43293af8640af337b7cf1fef01 (patch) | |
tree | e8293af740994a8bd25524cac3ca038b3a9eb40c /fs/btrfs | |
parent | 5af3981c1878b0657b9babd2ef7ec98c2008cf2c (diff) |
Btrfs: no slashes in subvolume names
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 62a3a778d37d..1cabc1951b0e 100644 --- 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 | |||
1831 | namelen = strlen(vol_args.name); | 1831 | namelen = strlen(vol_args.name); |
1832 | if (namelen > BTRFS_VOL_NAME_MAX) | 1832 | if (namelen > BTRFS_VOL_NAME_MAX) |
1833 | return -EINVAL; | 1833 | return -EINVAL; |
1834 | if (strchr(vol_args.name, '/')) | ||
1835 | return -EINVAL; | ||
1834 | path = btrfs_alloc_path(); | 1836 | path = btrfs_alloc_path(); |
1835 | if (!path) | 1837 | if (!path) |
1836 | return -ENOMEM; | 1838 | return -ENOMEM; |