[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grub fails to properly sync xfs

From: David Everly
Subject: grub fails to properly sync xfs
Date: Fri, 29 Apr 2005 15:34:34 -0600
User-agent: Mutt/1.5.9i

I'm using grub 0.95+cvs200406 on Debian GNU/Linux.

Under XFS, sync() does not suffice to force data from the log/journal
onto the disk so that the raw device can see it.  With XFS the data is
only forced into the on-disk journal.  Instead, one must freeze to force
it to completely write it to disk, and then immediately thaw to allow
continued writing.

So I think perhaps in these cases instead of "sync ()" found in
grub/asmstub.c, grub/main.c, and lib/device.c; in the case of XFS,
perhaps xfsctl (#include <xfs/libxfs.h>) should be used with
XFS_IOC_FREEZE and then after flushing is finished, XFS_IOC_THAW to
allow continued writing.

Encrypted Mail Preferred:
    Key ID:  8527B9AF
    Key Fingerprint:  E1B6 40B6 B73F 695E 0D3B  644E 6427 DD74 8527 B9AF
    Information:  http://www.gnupg.org/
ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
    Information:  http://www.expita.com/nomime.html

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]