]> 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)
commitf93f2ff3afc4468246abd4ad4acc60beb8a7ee8a
treead1ce1c258642737a303b345464007284ce98073
parente22b584bedfb07edff97fbb517857b8880ca979c
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