Commit 8a712645 authored by Chris Mason's avatar Chris Mason Committed by David Woodhouse

Btrfs: no slashes in subvolume names

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 5af3981c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment