From: Eric Sandeen <sandeen@sandeen.net>
To: xfs-oss <xfs@oss.sgi.com>
Subject: QA test for mounting with external log
Date: Mon, 19 May 2008 00:12:09 -0500 [thread overview]
Message-ID: <48310C29.2040500@sandeen.net> (raw)
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
reply other threads:[~2008-05-19 5:11 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=48310C29.2040500@sandeen.net \
--to=sandeen@sandeen.net \
--cc=xfs@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox