lkml.org 
[lkml]   [2001]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Journaling: Surviving or allowing unclean shutdown?
"Stephen C. Tweedie" wrote:
>
> On Wed, Jan 03, 2001 at 05:27:25PM +0100, Daniel Phillips wrote:
> >
> > Tux2 is explicitly designed to legitimize pulling the plug as a valid
> > way of shutting down. Metadata-only journalling filesystems are not
> > designed to be used this way, and even with full-data journalling you
> > should bear in mind that your on-disk filesystem image remains in an
> > invalid state until the journal recovery program has run successfully.
>
> ext3 does the recovery automatically during mount(8), so user space
> will never see an unrecovered filesystem. (There are filesystem flags
> set by the journal code to make sure that an unrecovered filesystem
> never gets mounted by a kernel which doesn't know how to do the
> appropriate recovery.)

Hi Stephen.

Yes, and so long as your journal is not on another partition/disk things
will eventually be set right. The combination of a partially updated
filesystem and its journal is in some sense a complete, consistent
filesystem.

I'm curious - how does ext3 handle the possibility of a crash during
journal recovery?

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.144 / U:0.108 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site