Fix mount option parsing in remount.
Remount currently happily accept any option thrown at it, although the
only filesystem specific option it actually handles is barrier/nobarrier.
And it actually doesn't handle these correctly either because it only
uses the value it parsed when we're doing a ro->rw transition. In
addition to that there's also a bad bug in xfs_parseargs which doesn't
touch the actual option in the mount point except for a single one,
XFS_MOUNT_SMALL_INUMS and thus forced any filesystem that's every
remounted in some way to not support 64bit inodes with no way to recover
This patch changes xfs_fs_remount to use it's own linux/parser.h based
options parse instead of xfs_parseargs and reject all options except
for barrier/nobarrier and to the right thing in general. Eventually
I'd like to have a single big option table used for mount aswell but
that can wait for a while.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Date: Wed Jul 2 13:41:58 AEST 2008
Inspected by: hch@xxxxxx
The following file(s) were checked into:
fs/xfs/linux-2.6/xfs_super.c - 1.434 - changed
- fix mount option parsing in remount