All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs/009: Unmount scratch to allow creation of new fs in next tests
@ 2017-03-14 17:29 Goldwyn Rodrigues
  0 siblings, 0 replies; only message in thread
From: Goldwyn Rodrigues @ 2017-03-14 17:29 UTC (permalink / raw)
  To: fstests; +Cc: eguan, Goldwyn Rodrigues

From: Goldwyn Rodrigues <rgoldwyn@suse.com>

5e6892d ("common/rc: use findmnt to check mounted device")
added findmnt in _check_mounted_on.
This would result the mountrec in
/dev/vdc[/newvol] /scratch format, and hence would fail because
the device name had the volume name with it. This would fail
_require_scratch which is usually in the starting of the tests.

Adding _scratch_unmount at the end of btrfs/009 solves this issue.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
---
 tests/btrfs/009 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/btrfs/009 b/tests/btrfs/009
index 2ffb817..8fb51e5 100755
--- a/tests/btrfs/009
+++ b/tests/btrfs/009
@@ -60,6 +60,7 @@ $BTRFS_UTIL_PROG subvolume set-default $subvolid $SCRATCH_MNT >> $seqres.full 2>
 $BTRFS_UTIL_PROG subvolume delete $SCRATCH_MNT/newvol >> $seqres.full 2>&1
 _scratch_unmount
 _scratch_mount || _fail "mount should have succeeded"
+_scratch_unmount
 
 echo "Silence is golden"
 status=0 ; exit
-- 
2.10.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-14 17:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-14 17:29 [PATCH] btrfs/009: Unmount scratch to allow creation of new fs in next tests Goldwyn Rodrigues

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.