* QA test for mounting with external log
@ 2008-05-19 5:12 Eric Sandeen
0 siblings, 0 replies; only message in thread
From: Eric Sandeen @ 2008-05-19 5:12 UTC (permalink / raw)
To: xfs-oss
This could probably use some cleanup but something like this
would have caught that recent regression.
Thanks,
-Eric
#! /bin/sh
# FS QA Test No. 188
#
# Test mounting with a device-sized external log
#
#-----------------------------------------------------------------------
# Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
#-----------------------------------------------------------------------
#
# creator
owner=sandeen-xfs@sandeen.net
seq=`basename $0`
echo "QA output created by $seq"
here=`pwd`
tmp=/tmp/$$
status=1 # failure is the default!
trap "_cleanup; exit \$status" 0 1 2 3 15
_cleanup()
{
cd /
rm -f $tmp.*
losetup -d /dev/loop2
}
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
rm -f $seq.full
# real QA test starts here
# Modify as appropriate.
_require_scratch
_supported_fs xfs
_supported_os Linux # (for losetup)
export MKFS_OPTIONS=""
export MOUNT_OPTIONS=""
dd if=/dev/zero bs=1M count=16 of=$tmp.logfile >/dev/null
losetup /dev/loop2 $tmp.logfile
_scratch_mkfs -llogdev=/dev/loop2 >/dev/null 2>&1
_scratch_mount -o logdev=/dev/loop2
umount $SCRATCH_DEV
# success, all done
status=0
exit
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-19 5:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-19 5:12 QA test for mounting with external log Eric Sandeen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox