mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-08-25 13:50:12 +03:00
repart: Add a log message when we're about to fsync().
(cherry picked from commit f3b8e81f5443fefb1dd2bb62d6b41c2559dca475) (cherry picked from commit 08cf1c5ce525bcf52548a8b3713b71cda7545c20)
This commit is contained in:
committed by
Luca Boccassi
parent
cef973c15d
commit
baf1840666
@ -3683,6 +3683,8 @@ static int partition_target_sync(Context *context, Partition *p, PartitionTarget
|
||||
|
||||
assert_se((whole_fd = fdisk_get_devfd(context->fdisk_context)) >= 0);
|
||||
|
||||
log_info("Syncing future partition %"PRIu64" contents to disk.", p->partno);
|
||||
|
||||
if (t->decrypted && fsync(t->decrypted->fd) < 0)
|
||||
return log_error_errno(errno, "Failed to sync changes to '%s': %m", t->decrypted->volume);
|
||||
|
||||
|
Reference in New Issue
Block a user