mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
fdasd: Use increased retry count for dasd_reread_partition_table
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 <nikita@linux.ibm.com> [hoeppner@linux.ibm.com: Reword commit message] Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
cdf0b5d66f
commit
bf9482709f
@@ -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!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user