From 676e8b9e22de0037051472e0a5542d771712d8f1 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 8 Mar 2022 10:28:26 +0100 Subject: [PATCH] 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 --- misc-utils/wipefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2