]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/065: make sure SCRATCH_DEV is unmount before mkfs
authorZorro Lang <zlang@redhat.com>
Wed, 27 Mar 2019 07:45:09 +0000 (15:45 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 31 Mar 2019 15:33:44 +0000 (23:33 +0800)
commitb0ef2879a77486b13ec7d8755f08722a79c36eb1
tree120551ca25a651dad4fc5b291bab9b0844e58bef
parenta7bab01554fb23818b06650c85a311e774fa1827
xfs/065: make sure SCRATCH_DEV is unmount before mkfs

Commit "8309b39a fstests: fix broken _require_scratch usage" did
below change on xfs/065:

  -_scratch_unmount 2>/dev/null
  +_scratch_mkfs_xfs >> $seqres.full

It cause xfs/065 always fails now, as:
  QA output created by 065
  mkfs.xfs: /dev/sdb2 contains a mounted filesystem
  ...

So use _require_scratch, to make sure the SCRATCH_DEV is unmounted
before mkfs.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/065