From: Daan De Meyer Date: Sun, 22 Sep 2024 13:42:52 +0000 (+0200) Subject: repart: Add a log message when we're about to fsync(). X-Git-Tag: v257-rc1~375 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3b8e81f5443fefb1dd2bb62d6b41c2559dca475;p=thirdparty%2Fsystemd.git repart: Add a log message when we're about to fsync(). --- 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);