Follow-up Comment #7, bug #32472 (project grub): > Sync is still needed No, it's not true.
sync() will sync all data on all (including innocent) filesystems. So, if someone writes to another disk (suppose dropbox, email server, other disk-heavy apps), sync() never complete, and grub hang (for the time)! fsync() is always sufficient, even without BLKFLSBUF, but BLKFLSBUF guarantee that data is flushed from disk hardware buffers to disk. Never use sync() in any program. Also, sync() force kernel to allocate ALL blocks marked for delayed allocation.... _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?32472> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org http://lists.gnu.org/mailman/listinfo/bug-grub