commit | 8a712645c3fbbf43293af8640af337b7cf1fef01 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Tue Jun 12 08:21:35 2007 -0400 |
committer | David Woodhouse <dwmw2@hera.kernel.org> | Tue Jun 12 08:21:35 2007 -0400 |
tree | e8293af740994a8bd25524cac3ca038b3a9eb40c | |
parent | 5af3981c1878b0657b9babd2ef7ec98c2008cf2c [diff] [blame] |
Btrfs: no slashes in subvolume names Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 62a3a77..1cabc19 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c
@@ -1831,6 +1831,8 @@ 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;