Follow-up Comment #4, bug #32472 (project grub): Okay, you just replace close() with fsync() + ioctl.
1. The original request was to replace sync() with appropriate call(s) (see util/grub-setup.c) 2. ioctl is appropriate only if opened file was "block device". issuing BLKFLSBUF on generic file may lead to unexpected behaviour. So, if user wants to install grub into generic file (disk image), we should call fsync() only. If user wants to install to block device (normal usage) we should call ioctl() So, please reopen bug. bug is not closed. You accidentally closed another bug. _______________________________________________________ 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