From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Daniel Pittman <daniel@rimspace.net>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
linux-pm@lists.linux-foundation.org,
Maxim Levitsky <maximlevitsky@gmail.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [linux-pm] Massive ext4 filesystem corruption after a failed s2disk/ram cycle
Date: Thu, 5 Nov 2009 07:56:37 -0200 [thread overview]
Message-ID: <20091105095637.GG30649@khazad-dum.debian.net> (raw)
In-Reply-To: <20091104111125.54C3.A69D9226@jp.fujitsu.com>
On Wed, 04 Nov 2009, KOSAKI Motohiro wrote:
> > On Wed, Oct 07, 2009 at 01:14:10PM +1100, Daniel Pittman wrote:
> > > For what it is worth, I would also be quite interested to know /why/ XFS is
> > > bad in this regard. Is it just the previously stated "XFS writes to disk
> > > despite freezing kernel threads" issue, or something deeper?
> >
> > sync pushes out all data to disk, but in a journaling filesystem that
> > might just but the log not the "normal" place on disk. For a boot
> > loader to deal with it properly it actually needs to do an replay of
> > the log. Grub does so for reiserfs but not for XFS for some reason.
> > I don't know why problems don't trigger more often with ext3, though.
>
> I'm sorry for the long delayed and offtopic responce. I discussed this
> issue with okuji-san (GRUB2 maintainer) at several month ago.
> He really wish linux implement real sync.
This is not about real sync. It is about the box being able to reboot after
a crash or power failure.
GRUB2 is broken in that regard, at least in its peecee-BIOS version: last
time I checked, it doesn't sort RAID components so that it won't boot from
failed or out-of-sync older components, it can't deal with some of the
filesystems being unclean...
> A bootloader has much constraint than OS (mainly caused by size constraint).
> it can't implemnt jornal log replay logic for _all_ filesystem. Why can't we
> implement storong sync syscall? I don't think this is PM nor bootloader fault.
A bootloader that can't boot a system that went through an unclean shutdown
is quite broken.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
next prev parent reply other threads:[~2009-11-05 9:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-06 21:06 Maxim Levitsky
2009-10-06 21:42 ` Theodore Tso
2009-10-06 23:02 ` Maxim Levitsky
2009-10-07 14:25 ` Jindrich Makovicka
2009-10-06 21:58 ` [linux-pm] " Rafael J. Wysocki
2009-10-06 22:53 ` Henrique de Moraes Holschuh
2009-10-06 23:02 ` Rafael J. Wysocki
2009-10-07 1:29 ` Henrique de Moraes Holschuh
2009-10-07 2:14 ` Daniel Pittman
2009-10-07 16:16 ` Christoph Hellwig
2009-11-04 2:18 ` KOSAKI Motohiro
2009-11-05 9:56 ` Henrique de Moraes Holschuh [this message]
2009-11-07 22:22 ` Thomas Fjellstrom
2009-11-08 8:29 ` Dave Chinner
2009-11-08 16:49 ` Christoph Hellwig
2009-11-09 9:42 ` Henrique de Moraes Holschuh
2009-10-10 3:26 ` ext4 filesystem corruption Maxim Levitsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091105095637.GG30649@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=daniel@rimspace.net \
--cc=hch@infradead.org \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=maximlevitsky@gmail.com \
--cc=rjw@sisk.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®