]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/rc: add default _udev_wait timeout
authorDavid Disseldorp <ddiss@suse.de>
Mon, 23 Mar 2026 04:45:58 +0000 (15:45 +1100)
committerZorro Lang <zlang@kernel.org>
Tue, 12 May 2026 17:22:03 +0000 (01:22 +0800)
commit4192c9e2266c8e92b49e3f73fe505101ab36ce1b
tree3dbb1897bc99098a0b03f6d2cdcd099613afcd6e
parent0d6ed520323d82dbb0f9ad77a7a63e48d01a3c4e
common/rc: add default _udev_wait timeout

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. 60 seconds is relatively arbitrary, but
should be long enough to avoid premature timeout on regular systems.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Zorro Lang <zlang@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc