mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 22:28:08 +02:00
Disable fdatasync on log flush
It was making boot up choppy
This commit is contained in:
parent
2910e2076b
commit
b10b3f2fda
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue