]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fail on mismatched subvol and subvolid mount options
authorOmar Sandoval <osandov@osandov.com>
Mon, 18 May 2015 09:16:29 +0000 (02:16 -0700)
committerChris Mason <clm@fb.com>
Wed, 3 Jun 2015 11:03:00 +0000 (04:03 -0700)
commitd11939b2523c0834ccd65c947e241426c83f4bfc
treead1ce1c258642737a303b345464007284ce98073
parent9292555fb94541fd08be990e0a8e3e45efb84c37
Btrfs: fail on mismatched subvol and subvolid mount options

There's nothing to stop a user from passing both subvol= and subvolid=
to mount, but if they don't refer to the same subvolume, someone is
going to be surprised at some point. Error out on this case, but allow
users to pass in both if they do match (which they could, for example,
get out of /proc/mounts).

Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/super.c