Messages in this thread | | | Date | Wed, 14 Jul 2004 22:30:12 +0200 | From | Pavel Machek <> | Subject | Re: ext3: bump mount count on journal replay |
| |
Hi!
> > Currently, you get fsck "just to be sure" once every ~30 clean > > mounts or ~30 hard shutdowns. I believe that hard shutdown is way more > > likely to cause some disk corruption, so it would make sense to fsck > > more often when system is hit by hard shutdown. > > > > At least in theory an unclean shutdown is not going to cause any > problems, unless the hardware is screwy, in which case even a single > hard shutdown is going to cause problems. I'm not sure that it > really
I'd say "unclean shutdown is not going to cause any problems *if it was due to powerfail". If unclean shutdown is caused by software problem journaling is not guaranteed to help.
> makes sense to arbitrarily state that a hard shutdown is 5 times more > likely to cause problems. We could make it be configurable, I > suppose, but I'm not sure it's worth it to add all that extra > complexity. (Heck, we could also argue using a similar reasoning that > software suspends also increases the chances of filesystem corruption > "if something bad happens". :-)
Well, if you suspend, resume and then your machine crashes, you should better run fsck, or it is not going to be pretty. Problem is that during bootup, its hard to tell if machine failed due to powerfail or if software problem caused shutdown.
Of course, "5" is very wrong number in any case. Do you see any non-ugly way to make it configurable?
Pavel -- People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |