public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] common/rc: add default _udev_wait timeout
@ 2026-03-19  0:51 David Disseldorp
  2026-03-19 15:38 ` Darrick J. Wong
  0 siblings, 1 reply; 6+ messages in thread
From: David Disseldorp @ 2026-03-19  0:51 UTC (permalink / raw)
  To: fstests; +Cc: Dave Chinner, David Disseldorp

If udevd isn't running then "udevadm wait" loops endlessly. With a
--timeout parameter provided, udevadm (udev-254.27) prints to stderr:
  Timed out for waiting devices being initialized.

The error message causes test failure via golden output mismatch and
is easier to debug than an infinite loop.

The timeout parameter is also compatible with existing
args="--removed <dev>" callers.

Signed-off-by: David Disseldorp <ddiss@suse.de>
---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/rc b/common/rc
index fd4ca964..aade0e5b 100644
--- a/common/rc
+++ b/common/rc
@@ -5544,7 +5544,7 @@ _udev_wait()
 	if [ -z "$UDEV_WAIT_PROG" ]; then
 		$UDEV_SETTLE_PROG >/dev/null 2>&1
 	else
-		$UDEV_WAIT_PROG $args
+		$UDEV_WAIT_PROG --timeout 10 $args
 	fi
 }
 
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-23  2:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-19  0:51 [PATCH] common/rc: add default _udev_wait timeout David Disseldorp
2026-03-19 15:38 ` Darrick J. Wong
2026-03-19 23:37   ` David Disseldorp
2026-03-20 14:44     ` Darrick J. Wong
2026-03-23  1:54       ` David Disseldorp
2026-03-23  2:03         ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox