From: Ray Strode Date: Tue, 11 Nov 2008 14:24:41 +0000 (-0500) Subject: Disable fdatasync on log flush X-Git-Tag: 0.6.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b10b3f2fda153772a75fdea3dee41fe3331652e8;p=thirdparty%2Fplymouth.git Disable fdatasync on log flush It was making boot up choppy --- diff --git a/src/libply/ply-logger.c b/src/libply/ply-logger.c index 2d8d9b8e..7645aea5 100644 --- a/src/libply/ply-logger.c +++ b/src/libply/ply-logger.c @@ -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; }