mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
repart: Add a log message when we're about to fsync().
This commit is contained in:
@@ -4376,6 +4376,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