dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
Blob Blame History Raw
diff -Naur a/sys-utils/losetup.c b/sys-utils/losetup.c
--- a/sys-utils/losetup.c	2021-10-20 15:28:49.072753825 -0700
+++ b/sys-utils/losetup.c	2021-10-20 15:29:07.938849143 -0700
@@ -557,7 +557,7 @@
 		if (rc == 0)
 			break;			/* success */
 
-		if (errno == EBUSY && !hasdev && ntries < 64) {
+		if ((errno == EBUSY || errno == EAGAIN) && !hasdev && ntries < 64) {
 			xusleep(200000);
 			ntries++;
 			continue;