Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Btrfs: no slashes in subvolume names

parent 5af3981c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;