diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-09 14:38:18 +0100 |
---|---|---|
committer | Eryu Guan <eguan@redhat.com> | 2017-01-15 13:56:45 +0800 |
commit | 1abe96278d4a540acc9680fa37f8aaacbdd2bdec (patch) | |
tree | cc0d5ae245c4569008a1009c50d99f88f0817fde | |
parent | ef00dbcf53346e576a973127486f723c248fd1c9 (diff) | |
download | xfstests-dev-1abe96278d4a540acc9680fa37f8aaacbdd2bdec.tar.gz |
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>
-rwxr-xr-x | tests/generic/081 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/generic/081 b/tests/generic/081 index 11755d4d89..426766d9bd 100755 --- a/tests/generic/081 +++ b/tests/generic/081 @@ -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 |