]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: Add a log message when we're about to fsync().
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 22 Sep 2024 13:42:52 +0000 (15:42 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 23 Sep 2024 08:43:42 +0000 (10:43 +0200)
src/partition/repart.c

index 1c7ac5094e2fa8f1ebdf6251252096ffab4212f4..01175c46982f08eea42ead680f80f0a7845d0451 100644 (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);