All of lore.kernel.org
 help / color / mirror / Atom feed
From: Goldwyn Rodrigues <rgoldwyn@suse.de>
To: fstests@vger.kernel.org
Cc: eguan@redhat.com, Goldwyn Rodrigues <rgoldwyn@suse.com>
Subject: [PATCH] btrfs/009: Unmount scratch to allow creation of new fs in next tests
Date: Tue, 14 Mar 2017 12:29:53 -0500	[thread overview]
Message-ID: <20170314172953.19225-1-rgoldwyn@suse.de> (raw)

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


                 reply	other threads:[~2017-03-14 17:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170314172953.19225-1-rgoldwyn@suse.de \
    --to=rgoldwyn@suse.de \
    --cc=eguan@redhat.com \
    --cc=fstests@vger.kernel.org \
    --cc=rgoldwyn@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.