mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/081: hack around the lvm unmount race
This is butt ugly, but I see no better way than to wait a bit to work around the race between the weird umount in LVM, and the mount ismounted checks. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
ef00dbcf53
commit
1abe96278d
@@ -35,6 +35,8 @@ _cleanup()
|
||||
cd /
|
||||
rm -f $tmp.*
|
||||
# lvm may have umounted it on I/O error, but in case it does not
|
||||
# wait a bit for lvm to settle, sigh..
|
||||
sleep 2
|
||||
$UMOUNT_PROG $mnt >/dev/null 2>&1
|
||||
$LVM_PROG vgremove -f $vgname >>$seqres.full 2>&1
|
||||
$LVM_PROG pvremove -f $SCRATCH_DEV >>$seqres.full 2>&1
|
||||
|
||||
Reference in New Issue
Block a user