From bf9482709fa63797d7bacb2ab93a86efa3962528 Mon Sep 17 00:00:00 2001 From: Nikita Dubrovskii Date: Wed, 9 Dec 2020 08:46:32 +0100 Subject: [PATCH] fdasd: Use increased retry count for dasd_reread_partition_table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If fdasd is used right after dasdfmt, it may fail with the following error due to udev still processing events for the device: ``` fdasd error: IOCTL error: Error while rereading partition table. ``` Call dasd_reread_partition_table() with an increased retry value to circumvent this issue. Closes: https://github.com/ibm-s390-tools/s390-tools/pull/103 Signed-off-by: Nikita Dubrovskii [hoeppner@linux.ibm.com: Reword commit message] Signed-off-by: Jan Höppner --- fdasd/fdasd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdasd/fdasd.c b/fdasd/fdasd.c index 516f164d..a6064cd9 100644 --- a/fdasd/fdasd.c +++ b/fdasd/fdasd.c @@ -1232,7 +1232,7 @@ static void fdasd_reread_partition_table(fdasd_anchor_t *anc) if (!anc->silent) printf("rereading partition table...\n"); - if (dasd_reread_partition_table(options.device, 1) != 0) { + if (dasd_reread_partition_table(options.device, 5) != 0) { fdasd_error(anc, unable_to_ioctl, "Error while rereading " "partition table.\nPlease reboot!"); }