From: Karel Zak Date: Tue, 13 Oct 2020 10:55:44 +0000 (+0200) Subject: losetup: increase limit of setup attempts X-Git-Tag: v2.37-rc1~428 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75cd5e2f281cec16c7da49b65c0f3cadd51749b8;p=thirdparty%2Futil-linux.git losetup: increase limit of setup attempts Signed-off-by: Karel Zak --- diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index 4b0e26389a..7a71ab9da6 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -1126,7 +1126,8 @@ static int gpt_check_lba_sanity(struct fdisk_context *cxt, struct gpt_header *he /* check if first and last usable LBAs with the disk's last LBA */ if (fu > lastlba || lu > lastlba) { - DBG(GPT, ul_debug("error: header LBAs are after the disk's last LBA")); + DBG(GPT, ul_debug("error: header LBAs are after the disk's last LBA (%ju..%ju)", + (uintmax_t) fu, (uintmax_t) lu)); goto done; } diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 51baf14408..7246fd85bf 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -573,7 +573,7 @@ static int create_loop(struct loopdev_cxt *lc, if (rc == 0) break; /* success */ - if (errno == EBUSY && !hasdev && ntries < 16) { + if (errno == EBUSY && !hasdev && ntries < 64) { xusleep(200000); ntries++; continue;