]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wipefs: increase delay after re-read ioctl
authorKarel Zak <kzak@redhat.com>
Tue, 8 Mar 2022 09:28:26 +0000 (10:28 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Mar 2022 09:28:26 +0000 (10:28 +0100)
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 <kzak@redhat.com>
misc-utils/wipefs.c

index 189af948a6c84b54af9e6fc76adf1d6412e17303..8cdc0a7ebe459398bee9533d5a8302a84456bab7 100644 (file)
@@ -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);