From f3b8e81f5443fefb1dd2bb62d6b41c2559dca475 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 22 Sep 2024 15:42:52 +0200 Subject: [PATCH] repart: Add a log message when we're about to fsync(). --- src/partition/repart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/partition/repart.c b/src/partition/repart.c index 1c7ac5094e2..01175c46982 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -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); -- 2.47.3