From 66d3aa849a473d2bf75e76f7b157f5c503778e7e Mon Sep 17 00:00:00 2001 From: Nikita Dubrovskii Date: Tue, 13 May 2025 13:07:56 +0200 Subject: [PATCH] zipl/src: remove global sync() call on exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the final sync(2), as zipl(8) already uses fsync(2), syncfs(2) and ioctl(BLKFLSBUF) to flush all performed modifications. Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/186 Signed-off-by: Nikita Dubrovskii Reviewed-by: Stefan Haberland Reviewed-by: Eduard Shishkin Signed-off-by: Eduard Shishkin Signed-off-by: Jan Höppner --- zipl/src/zipl.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zipl/src/zipl.c b/zipl/src/zipl.c index 2e0f1678..9f6d64a4 100644 --- a/zipl/src/zipl.c +++ b/zipl/src/zipl.c @@ -244,10 +244,6 @@ main(int argc, char* argv[]) } switch (rc) { case 0: /* Operation completed successfully */ - if (verbose) - printf("Syncing disks...\n"); - if (!dry_run) - sync(); printf("Done.\n"); break; case -2: /* Operation canceled by user */