grub-devel
[Top][All Lists]
Advanced

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

Do not use O_SYNC


From: Phillip Susi
Subject: Do not use O_SYNC
Date: Wed, 20 Mar 2013 10:15:58 -0400 (EDT)

revno: 164
committer: Phillip Susi <address@hidden>
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



reply via email to

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