logo       

grub fails to properly sync xfs: msg#00002

boot-loaders.grub.bugs

Subject: grub fails to properly sync xfs

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

_______________________________________________
Bug-grub mailing list
Bug-grub@xxxxxxx
http://lists.gnu.org/mailman/listinfo/bug-grub
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise