From 0c2157aea5574d689eff7852b8ef6d3605fecfa2 Mon Sep 17 00:00:00 2001 From: mglae Date: Sat, 21 Mar 2020 11:44:52 +0100 Subject: [PATCH] dosfstools: fsck.fat: reduce log spam, no backup boot sector diff in automatic mode --- ...s-01-silence_backup_boot_sector_diff.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/sysutils/dosfstools/patches/dosfstools-01-silence_backup_boot_sector_diff.patch diff --git a/packages/sysutils/dosfstools/patches/dosfstools-01-silence_backup_boot_sector_diff.patch b/packages/sysutils/dosfstools/patches/dosfstools-01-silence_backup_boot_sector_diff.patch new file mode 100644 index 0000000000..2fe329dc55 --- /dev/null +++ b/packages/sysutils/dosfstools/patches/dosfstools-01-silence_backup_boot_sector_diff.patch @@ -0,0 +1,23 @@ + +Do not print backup boot sector diff in non interactive mode to avoid log spam. + +--- a/src/boot.c 2017-01-23 02:16:58.000000000 +0100 ++++ a/src/boot.c 2020-02-05 18:32:16.000000000 +0100 +@@ -174,6 +174,9 @@ static void check_backup_boot(DOS_FS * f + char buf[20]; + + printf("There are differences between boot sector and its backup.\n"); ++ if (!interactive) ++ printf("This is mostly harmless.\n"); ++ else { + printf("This is mostly harmless. Differences: (offset:original/backup)\n "); + pos = 2; + for (p = (uint8_t *) b, q = (uint8_t *) & b2, i = 0; i < sizeof(b2); +@@ -188,6 +191,7 @@ static void check_backup_boot(DOS_FS * f + first = 0; + } + } ++ } + printf("\n"); + + if (interactive)