* [PATCH] generic/081: hack around the lvm unmount race
@ 2017-01-09 13:38 Christoph Hellwig
2017-01-09 15:37 ` Brian Foster
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2017-01-09 13:38 UTC (permalink / raw)
To: fstests
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>
---
tests/generic/081 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/generic/081 b/tests/generic/081
index 11755d4..426766d 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
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] generic/081: hack around the lvm unmount race
2017-01-09 13:38 [PATCH] generic/081: hack around the lvm unmount race Christoph Hellwig
@ 2017-01-09 15:37 ` Brian Foster
0 siblings, 0 replies; 2+ messages in thread
From: Brian Foster @ 2017-01-09 15:37 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: fstests
On Mon, Jan 09, 2017 at 02:38:18PM +0100, Christoph Hellwig wrote:
> 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>
> ---
Yes please:
Reviewed-by: Brian Foster <bfoster@redhat.com>
I've had this test expunged from some setups simply because this failure
can cause the entire test run to go off the rails.
> tests/generic/081 | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/generic/081 b/tests/generic/081
> index 11755d4..426766d 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
> --
> 2.1.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-09 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-09 13:38 [PATCH] generic/081: hack around the lvm unmount race Christoph Hellwig
2017-01-09 15:37 ` Brian Foster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox