mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl/src: remove global sync() call on exit
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 <nikita@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Reviewed-by: Eduard Shishkin <edward6@linux.ibm.com> Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
95e4b3413a
commit
66d3aa849a
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user