From: Karel Zak Date: Tue, 8 Mar 2022 09:28:26 +0000 (+0100) Subject: wipefs: increase delay after re-read ioctl X-Git-Tag: v2.38-rc3~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=676e8b9e22de0037051472e0a5542d771712d8f1;p=thirdparty%2Futil-linux.git wipefs: increase delay after re-read ioctl We usually use 250000 ms delay after EBUSY to repeat read/ioctls. Let's use the same for wipefs. Fixes: https://github.com/util-linux/util-linux/issues/1619 Signed-off-by: Karel Zak --- diff --git a/misc-utils/wipefs.c b/misc-utils/wipefs.c index 189af948a6..8cdc0a7ebe 100644 --- a/misc-utils/wipefs.c +++ b/misc-utils/wipefs.c @@ -502,7 +502,7 @@ static void rereadpt(int fd, const char *devname) * without delay is uncuccesful. The reason is probably kernel * and/or udevd. Let's wait a moment and try more attempts. */ - xusleep(25000); + xusleep(250000); errno = 0; ioctl(fd, BLKRRPART);