* [PATCH] fix remount rw with unrecognized options
@ 2008-10-12 12:30 Christoph Hellwig
2008-10-12 22:19 ` Eric Sandeen
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2008-10-12 12:30 UTC (permalink / raw)
To: xfs
When we skip unrecognized options in xfs_fs_remount we should just break
out of the switch and not return because otherwise we may skip clearing
the xfs-internal read-only flag. This will only show up on some
operations like touch because most read-only checks are done by the VFS
which things this filesystem is r/w. Eventually we should replace the
XFS read-only flag with a helper that always checks the VFS flag to make
sure they can never get out of sync.
Bug reported and fix verified by Marcel Beister on #xfs.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_super.c
===================================================================
--- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_super.c 2008-10-11 00:59:04.000000000 +0200
+++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_super.c 2008-10-11 00:59:35.000000000 +0200
@@ -1218,7 +1218,7 @@ xfs_fs_remount(
"XFS: mount option \"%s\" not supported for remount\n", p);
return -EINVAL;
#else
- return 0;
+ break;
#endif
}
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fix remount rw with unrecognized options
2008-10-12 12:30 [PATCH] fix remount rw with unrecognized options Christoph Hellwig
@ 2008-10-12 22:19 ` Eric Sandeen
2008-10-12 22:20 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Eric Sandeen @ 2008-10-12 22:19 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
Christoph Hellwig wrote:
> When we skip unrecognized options in xfs_fs_remount we should just break
> out of the switch and not return because otherwise we may skip clearing
> the xfs-internal read-only flag. This will only show up on some
> operations like touch because most read-only checks are done by the VFS
> which things this filesystem is r/w. Eventually we should replace the
> XFS read-only flag with a helper that always checks the VFS flag to make
> sure they can never get out of sync.
>
> Bug reported and fix verified by Marcel Beister on #xfs.
Seems reasonable.
I think this is 2.6.27.1 material?
-Eric
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
>
> Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_super.c
> ===================================================================
> --- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_super.c 2008-10-11 00:59:04.000000000 +0200
> +++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_super.c 2008-10-11 00:59:35.000000000 +0200
> @@ -1218,7 +1218,7 @@ xfs_fs_remount(
> "XFS: mount option \"%s\" not supported for remount\n", p);
> return -EINVAL;
> #else
> - return 0;
> + break;
> #endif
> }
> }
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fix remount rw with unrecognized options
2008-10-12 22:19 ` Eric Sandeen
@ 2008-10-12 22:20 ` Christoph Hellwig
2008-10-12 22:21 ` Eric Sandeen
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2008-10-12 22:20 UTC (permalink / raw)
To: Eric Sandeen; +Cc: Christoph Hellwig, xfs
On Sun, Oct 12, 2008 at 05:19:51PM -0500, Eric Sandeen wrote:
> Christoph Hellwig wrote:
> > When we skip unrecognized options in xfs_fs_remount we should just break
> > out of the switch and not return because otherwise we may skip clearing
> > the xfs-internal read-only flag. This will only show up on some
> > operations like touch because most read-only checks are done by the VFS
> > which things this filesystem is r/w. Eventually we should replace the
> > XFS read-only flag with a helper that always checks the VFS flag to make
> > sure they can never get out of sync.
> >
> > Bug reported and fix verified by Marcel Beister on #xfs.
>
> Seems reasonable.
>
> I think this is 2.6.27.1 material?
Yes.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fix remount rw with unrecognized options
2008-10-12 22:20 ` Christoph Hellwig
@ 2008-10-12 22:21 ` Eric Sandeen
0 siblings, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2008-10-12 22:21 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
Christoph Hellwig wrote:
> On Sun, Oct 12, 2008 at 05:19:51PM -0500, Eric Sandeen wrote:
>> Christoph Hellwig wrote:
>>> When we skip unrecognized options in xfs_fs_remount we should just break
>>> out of the switch and not return because otherwise we may skip clearing
>>> the xfs-internal read-only flag. This will only show up on some
>>> operations like touch because most read-only checks are done by the VFS
>>> which things this filesystem is r/w. Eventually we should replace the
>>> XFS read-only flag with a helper that always checks the VFS flag to make
>>> sure they can never get out of sync.
>>>
>>> Bug reported and fix verified by Marcel Beister on #xfs.
>> Seems reasonable.
>>
>> I think this is 2.6.27.1 material?
>
> Yes.
>
>
The recent bug on oss.sgi.com is probably the same; I'm updating it now.
-Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-12 22:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-12 12:30 [PATCH] fix remount rw with unrecognized options Christoph Hellwig
2008-10-12 22:19 ` Eric Sandeen
2008-10-12 22:20 ` Christoph Hellwig
2008-10-12 22:21 ` Eric Sandeen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox