xfs
[Top] [All Lists]

QA test for mounting with external log

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: QA test for mounting with external log
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Mon, 19 May 2008 00:12:09 -0500
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
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@xxxxxxxxxxx

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



<Prev in Thread] Current Thread [Next in Thread>
  • QA test for mounting with external log, Eric Sandeen <=