linux/fs/gfs2
Steven Whitehouse f55073ff1e GFS2: Fix -o meta mounts for subsequent mounts (i.e. all but the first one)
We have a long term plan to use the "-o meta" flag to GFS2 mounts to
access the alternate root which is used to store metadata for a GFS2
filesystem. This will allow us to eventually remove support for the
gfs2meta filesystem type (which is in any case just a "front end" to
the gfs2 filesystem type with the meta/master root).

Currently the "-o meta" option is only taken into account on the
initial mount of the filesystem. Subsequent mounts of the same
filesystem (i.e. on the same device) result in basically the same
as bind mounting the root of the original mount.

This patch changes that by using what is more or less a copy
of get_sb_bdev() and extending it so that it will take into
account the alternate root in all cases. The main difference
is that we have to parse the mount options a bit earlier. We can
then use them to select the appropriate root towards the end of
the function.

In addition this also fixes a bug where it was possible (but certainly
not desirable) to set different ro/rw options for the meta root
when mounted via the gfs2meta fs compared with the original mount.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Alexander Viro <aviro@redhat.com>
2009-12-03 11:42:47 +00:00
..
acl.c
acl.h
aops.c HWPOISON: Enable .remove_error_page for migration aware file systems 2009-09-16 11:50:16 +02:00
bmap.c
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c const: mark struct vm_struct_operations 2009-09-27 11:39:25 -07:00
gfs2.h
glock.c GFS2: Fix potential race in glock code 2009-12-03 11:42:25 +00:00
glock.h
glops.c
glops.h
incore.h
inode.c
inode.h
Kconfig
lock_dlm.c
log.c
log.h
lops.c
lops.h
main.c SLOW_WORK: Wait for outstanding work items belonging to a module to clear 2009-11-19 18:10:23 +00:00
Makefile
meta_io.c
meta_io.h
ops_fstype.c GFS2: Fix -o meta mounts for subsequent mounts (i.e. all but the first one) 2009-12-03 11:42:47 +00:00
ops_inode.c headers: utsname.h redux 2009-09-23 18:13:10 -07:00
quota.c
quota.h
recovery.c SLOW_WORK: Fix GFS2 to #include <linux/module.h> before using THIS_MODULE 2009-11-20 21:50:40 +00:00
recovery.h
rgrp.c trivial: fix typo "to to" in multiple files 2009-09-21 15:14:55 +02:00
rgrp.h
super.c GFS2: Fix -o meta mounts for subsequent mounts (i.e. all but the first one) 2009-12-03 11:42:47 +00:00
super.h GFS2: Fix -o meta mounts for subsequent mounts (i.e. all but the first one) 2009-12-03 11:42:47 +00:00
sys.c
sys.h
trace_gfs2.h
trans.c
trans.h
util.c
util.h
xattr.c
xattr.h