* norecovery option for ext3
@ 2009-11-23 7:26 Alexey Fisher
0 siblings, 0 replies; 6+ messages in thread
From: Alexey Fisher @ 2009-11-23 7:26 UTC (permalink / raw)
To: linux-ext4
> On Fri 20-11-09 11:56:15, Eric Sandeen wrote:
> > Andreas Dilger wrote:
> > > On 2009-11-20, at 07:46, Eric Sandeen wrote:
> > >> Jan Kara wrote:
> > >>> I've tried to test noload/norecovery option of ext3 and I've found
> > >>> it simply does not work. The filesystem does not even mount.
> > >
> > >>> Given that nobody used the option (OK, some googling shows that
> > >>> somebody tried to use it in *2.4.9* kernel and it didn't work even
> > >>> there - Stephen Tweedie comments that it's an obsolete option meant
> > >>> for use during fs development) and seeing how badly corrupted the
> > >>> filesystem is when you don't replay the journal, I'd just remove the
> > >>> option. Any opinions?
> > >>
> > >> Oh, sigh. Sorry, didn't actually, er, test it, since I was just
> > >> adding an alias for the option... bleah.
> > >>
> > >> I think we should fix it; there are cases when you may want to mount
> > >> that way, I think - for example, otherwise there is no way at all to
> > >> mounta block device which is marked readonly...
> > >
> > >
> > > Won't this require implementing "no journal" mode for ext3? Seems like
> > > a lot of effort, when ext4 does the same thing (i.e. they could just
> > > mount the filesystem "-t ext4 -o norecovery" if they really, really need
> > > to do that).
> >
> > I don't see why it would need nojournal mode; you'd have to:
> >
> > mount -o ro,norecovery
> >
> > anyway, and if it's ro the journal should be non-operational anyway right?
> >
> > (Jan, did you mount -o norecovery or -o ro,norecovery in your tests?)
> Actually, just -o norecovery but after the oops I've looked at the code
> and concluded that -o ro won't help the oops anyway... But yes, fixing the
> code in read-only mode should be possible.
>
> Honza
How about making norecovery be "ronorecovery,ro". So you need to set only one option, I think it will make some people (like me) happy.
No body wont to use "norecovery,rw" except for some suicide reasons.
regards,
Alexey
^ permalink raw reply [flat|nested] 6+ messages in thread
* norecovery option for ext3
@ 2009-11-20 12:24 Jan Kara
2009-11-20 15:46 ` Eric Sandeen
0 siblings, 1 reply; 6+ messages in thread
From: Jan Kara @ 2009-11-20 12:24 UTC (permalink / raw)
To: linux-ext4; +Cc: sandeen, tytso
Hi,
I've tried to test noload/norecovery option of ext3 and I've found it
simply does not work. The filesystem does not even mount. There are two
problems:
1) the code checking for NOLOAD in ext3_fill_super is simply wrong
and ends up failing the mount whenever NOLOAD is set with a message
"ext3: No journal on filesystem on <dev>"
2) if one fixes the check, we end up oopsing a few lines below when
calling journal_check_available_features() with journal == NULL.
Given that nobody used the option (OK, some googling shows that somebody
tried to use it in *2.4.9* kernel and it didn't work even there - Stephen
Tweedie comments that it's an obsolete option meant for use during fs
development) and seeing how badly corrupted the filesystem is when you
don't replay the journal, I'd just remove the option. Any opinions?
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: norecovery option for ext3
2009-11-20 12:24 Jan Kara
@ 2009-11-20 15:46 ` Eric Sandeen
2009-11-20 17:41 ` Andreas Dilger
0 siblings, 1 reply; 6+ messages in thread
From: Eric Sandeen @ 2009-11-20 15:46 UTC (permalink / raw)
To: Jan Kara; +Cc: linux-ext4, tytso
Jan Kara wrote:
> Hi,
>
> I've tried to test noload/norecovery option of ext3 and I've found it
> simply does not work. The filesystem does not even mount. There are two
> problems:
> 1) the code checking for NOLOAD in ext3_fill_super is simply wrong
> and ends up failing the mount whenever NOLOAD is set with a message
> "ext3: No journal on filesystem on <dev>"
> 2) if one fixes the check, we end up oopsing a few lines below when
> calling journal_check_available_features() with journal == NULL.
>
> Given that nobody used the option (OK, some googling shows that somebody
> tried to use it in *2.4.9* kernel and it didn't work even there - Stephen
> Tweedie comments that it's an obsolete option meant for use during fs
> development) and seeing how badly corrupted the filesystem is when you
> don't replay the journal, I'd just remove the option. Any opinions?
>
> Honza
Oh, sigh. Sorry, didn't actually, er, test it, since I was just adding
an alias for the option... bleah.
I think we should fix it; there are cases when you may want to mount that
way, I think - for example, otherwise there is no way at all to mount
a block device which is marked readonly...
-Eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: norecovery option for ext3
2009-11-20 15:46 ` Eric Sandeen
@ 2009-11-20 17:41 ` Andreas Dilger
2009-11-20 17:56 ` Eric Sandeen
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Dilger @ 2009-11-20 17:41 UTC (permalink / raw)
To: Eric Sandeen; +Cc: Jan Kara, linux-ext4, tytso
On 2009-11-20, at 07:46, Eric Sandeen wrote:
> Jan Kara wrote:
>> I've tried to test noload/norecovery option of ext3 and I've found
>> it simply does not work. The filesystem does not even mount.
>> Given that nobody used the option (OK, some googling shows that
>> somebody tried to use it in *2.4.9* kernel and it didn't work even
>> there - Stephen Tweedie comments that it's an obsolete option meant
>> for use during fs development) and seeing how badly corrupted the
>> filesystem is when you don't replay the journal, I'd just remove
>> the option. Any opinions?
>
> Oh, sigh. Sorry, didn't actually, er, test it, since I was just
> adding an alias for the option... bleah.
>
> I think we should fix it; there are cases when you may want to mount
> that way, I think - for example, otherwise there is no way at all to
> mounta block device which is marked readonly...
Won't this require implementing "no journal" mode for ext3? Seems
like a lot of effort, when ext4 does the same thing (i.e. they could
just mount the filesystem "-t ext4 -o norecovery" if they really,
really need to do that).
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: norecovery option for ext3
2009-11-20 17:41 ` Andreas Dilger
@ 2009-11-20 17:56 ` Eric Sandeen
2009-11-20 20:54 ` Jan Kara
0 siblings, 1 reply; 6+ messages in thread
From: Eric Sandeen @ 2009-11-20 17:56 UTC (permalink / raw)
To: Andreas Dilger; +Cc: Jan Kara, linux-ext4, tytso
Andreas Dilger wrote:
> On 2009-11-20, at 07:46, Eric Sandeen wrote:
>> Jan Kara wrote:
>>> I've tried to test noload/norecovery option of ext3 and I've found
>>> it simply does not work. The filesystem does not even mount.
>
>>> Given that nobody used the option (OK, some googling shows that
>>> somebody tried to use it in *2.4.9* kernel and it didn't work even
>>> there - Stephen Tweedie comments that it's an obsolete option meant
>>> for use during fs development) and seeing how badly corrupted the
>>> filesystem is when you don't replay the journal, I'd just remove the
>>> option. Any opinions?
>>
>> Oh, sigh. Sorry, didn't actually, er, test it, since I was just
>> adding an alias for the option... bleah.
>>
>> I think we should fix it; there are cases when you may want to mount
>> that way, I think - for example, otherwise there is no way at all to
>> mounta block device which is marked readonly...
>
>
> Won't this require implementing "no journal" mode for ext3? Seems like
> a lot of effort, when ext4 does the same thing (i.e. they could just
> mount the filesystem "-t ext4 -o norecovery" if they really, really need
> to do that).
I don't see why it would need nojournal mode; you'd have to:
mount -o ro,norecovery
anyway, and if it's ro the journal should be non-operational anyway right?
(Jan, did you mount -o norecovery or -o ro,norecovery in your tests?)
-Eric
> Cheers, Andreas
> --
> Andreas Dilger
> Sr. Staff Engineer, Lustre Group
> Sun Microsystems of Canada, Inc.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: norecovery option for ext3
2009-11-20 17:56 ` Eric Sandeen
@ 2009-11-20 20:54 ` Jan Kara
0 siblings, 0 replies; 6+ messages in thread
From: Jan Kara @ 2009-11-20 20:54 UTC (permalink / raw)
To: Eric Sandeen; +Cc: Andreas Dilger, Jan Kara, linux-ext4, tytso
On Fri 20-11-09 11:56:15, Eric Sandeen wrote:
> Andreas Dilger wrote:
> > On 2009-11-20, at 07:46, Eric Sandeen wrote:
> >> Jan Kara wrote:
> >>> I've tried to test noload/norecovery option of ext3 and I've found
> >>> it simply does not work. The filesystem does not even mount.
> >
> >>> Given that nobody used the option (OK, some googling shows that
> >>> somebody tried to use it in *2.4.9* kernel and it didn't work even
> >>> there - Stephen Tweedie comments that it's an obsolete option meant
> >>> for use during fs development) and seeing how badly corrupted the
> >>> filesystem is when you don't replay the journal, I'd just remove the
> >>> option. Any opinions?
> >>
> >> Oh, sigh. Sorry, didn't actually, er, test it, since I was just
> >> adding an alias for the option... bleah.
> >>
> >> I think we should fix it; there are cases when you may want to mount
> >> that way, I think - for example, otherwise there is no way at all to
> >> mounta block device which is marked readonly...
> >
> >
> > Won't this require implementing "no journal" mode for ext3? Seems like
> > a lot of effort, when ext4 does the same thing (i.e. they could just
> > mount the filesystem "-t ext4 -o norecovery" if they really, really need
> > to do that).
>
> I don't see why it would need nojournal mode; you'd have to:
>
> mount -o ro,norecovery
>
> anyway, and if it's ro the journal should be non-operational anyway right?
>
> (Jan, did you mount -o norecovery or -o ro,norecovery in your tests?)
Actually, just -o norecovery but after the oops I've looked at the code
and concluded that -o ro won't help the oops anyway... But yes, fixing the
code in read-only mode should be possible.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-11-23 7:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23 7:26 norecovery option for ext3 Alexey Fisher
-- strict thread matches above, loose matches on Subject: below --
2009-11-20 12:24 Jan Kara
2009-11-20 15:46 ` Eric Sandeen
2009-11-20 17:41 ` Andreas Dilger
2009-11-20 17:56 ` Eric Sandeen
2009-11-20 20:54 ` Jan Kara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox