revno: 164
committer: Phillip Susi <[email protected]>
branch nick: raring
timestamp: Wed 2013-03-20 10:00:03 -0400
message:
  Do not use O_SYNC

  The disk was being opened with O_SYNC, and written to one sector
  at a time.  This has a huge time penalty, causing at least one
  revolution of the disk per sector written.
diff:
=== modified file 'grub-core/kern/emu/hostdisk.c'
--- grub-core/kern/emu/hostdisk.c       2012-09-27 16:16:51 +0000
+++ grub-core/kern/emu/hostdisk.c       2013-03-20 14:00:03 +0000
@@ -848,9 +848,6 @@
 #ifdef O_LARGEFILE
   flags |= O_LARGEFILE;
 #endif
-#ifdef O_SYNC
-  flags |= O_SYNC;
-#endif
 #ifdef O_FSYNC
   flags |= O_FSYNC;
 #endif

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to