repart: Add a log message when we're about to fsync().

This commit is contained in:
Daan De Meyer
2024-09-23 10:43:42 +02:00
parent 04c00944d8
commit f3b8e81f54
+2
View File
@@ -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);