]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
generic/459: ensure that the lvm devices have been created
authorDarrick J. Wong <djwong@kernel.org>
Wed, 16 Mar 2022 03:30:09 +0000 (20:30 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Apr 2022 12:29:28 +0000 (20:29 +0800)
Once in a /very/ long while this test fails because _mkfs_dev can't find
the LVM thinp volume after it's been created.  Since the "solution" du
jour seems to be to sprinkle udevadm settle calls everywhere, do that
here in the hopes that will fix it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/459

index cda19e6eb235dd8dde29193d8163060810e50acc..57d58e55c10d5d0b860d57665318d32e2bc9e4df 100755 (executable)
@@ -70,6 +70,7 @@ $LVM_PROG lvcreate  --virtualsize $virtsize \
                    -T $vgname/$poolname \
                    -n $lvname >>$seqres.full 2>&1
 
+$UDEV_SETTLE_PROG &>/dev/null
 _mkfs_dev /dev/mapper/$vgname-$lvname >>$seqres.full 2>&1
 
 # Running the test over the original volume doesn't reproduce the problem