]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Disable fdatasync on log flush
authorRay Strode <rstrode@redhat.com>
Tue, 11 Nov 2008 14:24:41 +0000 (09:24 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 11 Nov 2008 14:24:41 +0000 (09:24 -0500)
It was making boot up choppy

src/libply/ply-logger.c

index 2d8d9b8e42ad5185af43e1f61f655b2d6a3ddce7..7645aea56b185f07a1768ff48593f3adf2190745 100644 (file)
@@ -357,9 +357,11 @@ ply_logger_flush (ply_logger_t *logger)
   if (!ply_logger_flush_buffer (logger))
     return false;
 
+#ifdef SYNC_ON_FLUSH
   if ((fdatasync (logger->output_fd) < 0) &&
       ((errno != EROFS) && (errno != EINVAL)))
     return false;
+#endif
 
   return true;
 }