From: Chris Mason Date: Tue, 12 Jun 2007 12:21:35 +0000 (-0400) Subject: Btrfs: no slashes in subvolume names X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8a712645c3fbbf43293af8640af337b7cf1fef01;p=linux-beck.git Btrfs: no slashes in subvolume names Signed-off-by: Chris Mason --- 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 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;