* xfstest/btrfs _require_scratch_dev_pool runs btrfsck
@ 2014-08-14 10:54 Anand Jain
0 siblings, 0 replies; only message in thread
From: Anand Jain @ 2014-08-14 10:54 UTC (permalink / raw)
To: linux-btrfs
Here below is a simple test script. I can't understand why
_require_scratch_dev_pool should check consistency on the disk ?
-------------
#! /bin/bash
# Test case 060
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
tmp=/tmp/$$
status=1 # failure is the default!
trap "_cleanup; exit \$status" 0 1 2 3 15
_cleanup()
{
cd /
rm -f $tmp.tmp
}
# get standard environment, filters and checks
. ./common/rc
. ./common/filter
_require_scratch_dev_pool 4
status=0
exit
-------------
./check btrfs/060
FSTYP -- btrfs
PLATFORM -- Linux/x86_64 OL 3.16.0-rc6+
MKFS_OPTIONS -- /dev/sdc
MOUNT_OPTIONS -- /dev/sdc /mnt/scratch
btrfs/060 2s ... 1s
_check_btrfs_filesystem: filesystem on /dev/sdc is inconsistent (see
/usr/src/cli/xfstests/results//btrfs/060.full) <-----
Ran: btrfs/060
Passed all 1 tests
_check_btrfs_filesystem()
{
::
echo "_check_btrfs_filesystem: filesystem on $device is
inconsistent" >>$seqres.full
check
::
test -f ${RESULT_DIR}/require_scratch && _check_scratch_fs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-14 10:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 10:54 xfstest/btrfs _require_scratch_dev_pool runs btrfsck Anand Jain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).