[PATCH] btrfs/009: Unmount scratch to allow creation of new fs in next tests

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



From: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx>

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@xxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux