stress2: Remove bsdlabel(8) from tests
Reported by: mhorne Discussed with: kib
This commit is contained in:
parent
c692ea4026
commit
608c97bff9
@ -58,7 +58,6 @@ export diskimage=${diskimage:-/tmp/diskimage} # Location of 1G disk image
|
||||
export mntpoint=${mntpoint:-/mnt} # Disk image mount point
|
||||
export testuser=${testuser:-TBD} # Name of non root test user
|
||||
export mdstart=${mdstart:-10} # Start of free md units
|
||||
export part=${part:-a} # Partition to use on a md FS
|
||||
export newfs_flags=${newfs_flags:-"-U"} # Default file system flags
|
||||
export stress2origin=${stress2origin:-`pwd`}
|
||||
export stress2tools=`dirname $stress2origin`/tools
|
||||
|
@ -60,9 +60,8 @@ rm -f advlock.c
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 512m -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
cp /usr/bin/true $mntpoint
|
||||
cd $mntpoint
|
||||
|
@ -37,9 +37,8 @@ pgrep -q auditd && exit 0 || service auditd onestart
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=5m
|
||||
@ -52,7 +51,7 @@ while mount | grep $mntpoint | grep -q /dev/md; do
|
||||
umount $mntpoint || sleep 1
|
||||
[ $((n += 1)) -gt 300 ] && { echo FAIL; exit 1; }
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part; s=$?
|
||||
checkfs /dev/md$mdstart; s=$?
|
||||
mdconfig -d -u $mdstart
|
||||
service auditd onestop
|
||||
|
||||
|
@ -37,45 +37,43 @@ export here=`pwd`
|
||||
|
||||
m=$mdstart
|
||||
|
||||
mount | grep "$mntpoint" | grep -q md$m && umount ${mntpoint}$m
|
||||
mount | grep "$mntpoint" | grep -q md$m && umount $mntpoint$m
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
|
||||
dd if=/dev/zero of=$D$m bs=100m count=1 status=none || exit 1
|
||||
|
||||
mdconfig -a -t vnode -f $D$m -u $m
|
||||
|
||||
bsdlabel -w md$m auto
|
||||
newfs md${m}$part > /dev/null 2>&1
|
||||
[ -d ${mntpoint}$m ] || mkdir -p ${mntpoint}$m
|
||||
mount $opt /dev/md${m}$part ${mntpoint}$m
|
||||
newfs md${m} > /dev/null 2>&1
|
||||
[ -d $mntpoint$m ] || mkdir -p $mntpoint$m
|
||||
mount $opt /dev/md$m $mntpoint$m
|
||||
|
||||
n=$m
|
||||
m=$((m + 1))
|
||||
|
||||
mount | grep "$mntpoint" | grep -q md$m && umount ${mntpoint}$m
|
||||
mount | grep "$mntpoint$m" | grep -q md$m && umount $mntpoint$m
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
|
||||
truncate -s 500M ${mntpoint}$n/diskimage
|
||||
mdconfig -a -t vnode -f ${mntpoint}$n/diskimage -u $m
|
||||
truncate -s 500M $mntpoint$n/diskimage
|
||||
mdconfig -a -t vnode -f $mntpoint$n/diskimage -u $m
|
||||
|
||||
bsdlabel -w md$m auto
|
||||
newfs md${m}$part > /dev/null 2>&1
|
||||
[ -d ${mntpoint}$m ] || mkdir -p ${mntpoint}$m
|
||||
mount $opt /dev/md${m}$part ${mntpoint}$m
|
||||
newfs md${m} > /dev/null 2>&1
|
||||
[ -d $mntpoint$m ] || mkdir -p $mntpoint$m
|
||||
mount $opt /dev/md$m $mntpoint$m
|
||||
|
||||
export RUNDIR=${mntpoint}$m/stressX
|
||||
export RUNDIR=$mntpoint$m/stressX
|
||||
../testcases/rw/rw -t 5m -i 200 -h -n
|
||||
|
||||
while mount | grep -q ${mntpoint}$m; do
|
||||
while mount | grep -q $mntpoint$m; do
|
||||
flag=$([ $((`date '+%s'` % 2)) -eq 0 ] && echo "-f" || echo "")
|
||||
umount $flag ${mntpoint}$m > /dev/null 2>&1
|
||||
umount $flag $mntpoint$m > /dev/null 2>&1
|
||||
done
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
|
||||
m=$((m - 1))
|
||||
while mount | grep -q ${mntpoint}$m; do
|
||||
while mount | grep -q $mntpoint$m; do
|
||||
umount $([ $((`date '+%s'` % 2)) -eq 0 ] && \
|
||||
echo "-f" || echo "") ${mntpoint}$m > /dev/null 2>&1
|
||||
echo "-f" || echo "") $mntpoint$m > /dev/null 2>&1
|
||||
done
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
rm -f $D
|
||||
|
@ -40,33 +40,31 @@ export here=`pwd`
|
||||
|
||||
m1=$mdstart
|
||||
m2=$((m1 + 1))
|
||||
mount | grep "$mntpoint" | grep -q md$m2 && umount ${mntpoint}$m2
|
||||
mount | grep "$mntpoint$m2" | grep -q md$m2 && umount $mntpoint$m2
|
||||
mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
|
||||
mount | grep "$mntpoint" | grep -q md$m1 && umount ${mntpoint}$m1
|
||||
mount | grep "$mntpoint$m1" | grep -q md$m1 && umount $mntpoint$m1
|
||||
mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
|
||||
[ -d ${mntpoint}$m1 ] || mkdir -p ${mntpoint}$m1
|
||||
[ -d ${mntpoint}$m2 ] || mkdir -p ${mntpoint}$m2
|
||||
[ -d $mntpoint$m1 ] || mkdir -p $mntpoint$m1
|
||||
[ -d $mntpoint$m2 ] || mkdir -p $mntpoint$m2
|
||||
|
||||
dd if=/dev/zero of=$D$m bs=100m count=1 status=none || exit 1
|
||||
|
||||
mdconfig -a -t vnode -f $D$m1 -u $m1
|
||||
|
||||
bsdlabel -w md$m1 auto
|
||||
newfs md${m1}$part > /dev/null 2>&1
|
||||
mount /dev/md${m1}$part ${mntpoint}$m1
|
||||
newfs md$m1 > /dev/null 2>&1
|
||||
mount /dev/md$m1 $mntpoint$m1
|
||||
|
||||
truncate -s 500M ${mntpoint}$m1/diskimage
|
||||
mdconfig -a -t vnode -f ${mntpoint}$m1/diskimage -u $m2
|
||||
truncate -s 500M $mntpoint$m1/diskimage
|
||||
mdconfig -a -t vnode -f $mntpoint$m1/diskimage -u $m2
|
||||
|
||||
bsdlabel -w md$m2 auto
|
||||
newfs md${m2}$part > /dev/null 2>&1
|
||||
mount /dev/md${m2}$part ${mntpoint}$m2
|
||||
newfs md$m2 > /dev/null 2>&1
|
||||
mount /dev/md$m2 $mntpoint$m2
|
||||
|
||||
# Reversed umount sequence:
|
||||
umount -f /dev/md${m1}$part
|
||||
umount -f /dev/md${m2}$part
|
||||
umount -f /dev/md$m1
|
||||
umount -f /dev/md$m2
|
||||
|
||||
mount | grep "$mntpoint" | grep -q md$m2 && umount ${mntpoint}$m2
|
||||
mount | grep "$mntpoint" | grep -q md$m2 && umount $mntpoint$m2
|
||||
mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
|
||||
mount | grep "$mntpoint" | grep -q md$m1 && umount ${mntpoint}$m1
|
||||
mount | grep "$mntpoint" | grep -q md$m1 && umount $mntpoint$m1
|
||||
mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
|
||||
|
@ -39,35 +39,33 @@ export here=`pwd`
|
||||
|
||||
m1=$mdstart
|
||||
m2=$((m1 + 1))
|
||||
mount | grep "$mntpoint" | grep -q md$m2 && umount ${mntpoint}$m2
|
||||
mount | grep "$mntpoint" | grep -q md$m2 && umount $mntpoint$m2
|
||||
mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
|
||||
mount | grep "$mntpoint" | grep -q md$m1 && umount ${mntpoint}$m1
|
||||
mount | grep "$mntpoint" | grep -q md$m1 && umount $mntpoint$m1
|
||||
mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
|
||||
[ -d ${mntpoint}$m1 ] || mkdir -p ${mntpoint}$m1
|
||||
[ -d ${mntpoint}$m2 ] || mkdir -p ${mntpoint}$m2
|
||||
[ -d $mntpoint$m1 ] || mkdir -p $mntpoint$m1
|
||||
[ -d $mntpoint$m2 ] || mkdir -p $mntpoint$m2
|
||||
|
||||
dd if=/dev=zero of=$D$m bs=25m count=1 status=none || exit 1
|
||||
|
||||
mdconfig -a -t vnode -f $D$m1 -u $m1
|
||||
|
||||
bsdlabel -w md$m1 auto
|
||||
newfs md${m1}$part > /dev/null 2>&1
|
||||
mount /dev/md${m1}$part ${mntpoint}$m1
|
||||
newfs md$m1 > /dev/null 2>&1
|
||||
mount /dev/md$m1 $mntpoint$m1
|
||||
|
||||
truncate -s 500M ${mntpoint}$m1/diskimage
|
||||
mdconfig -a -t vnode -f ${mntpoint}$m1/diskimage -u $m2
|
||||
truncate -s 500M $mntpoint$m1/diskimage
|
||||
mdconfig -a -t vnode -f $mntpoint$m1/diskimage -u $m2
|
||||
|
||||
bsdlabel -w md$m2 auto
|
||||
newfs md${m2}$part > /dev/null 2>&1
|
||||
mount /dev/md${m2}$part ${mntpoint}$m2
|
||||
newfs md$m2 > /dev/null 2>&1
|
||||
mount /dev/md$m2 $mntpoint$m2
|
||||
|
||||
dd if=/dev/zero of=${mntpoint}$m2/file bs=1m > /dev/null 2>&1
|
||||
dd if=/dev/zero of=$mntpoint$m2/file bs=1m > /dev/null 2>&1
|
||||
|
||||
# Reversed umount sequence:
|
||||
umount -f /dev/md${m1}$part
|
||||
umount -f /dev/md${m2}$part
|
||||
umount -f /dev/md$m1
|
||||
umount -f /dev/md$m2
|
||||
|
||||
mount | grep "$mntpoint" | grep -q md$m2 && umount ${mntpoint}$m2
|
||||
mount | grep "$mntpoint" | grep -q md$m2 && umount $mntpoint$m2
|
||||
mdconfig -l | grep -q md$m2 && mdconfig -d -u $m2
|
||||
mount | grep "$mntpoint" | grep -q md$m1 && umount ${mntpoint}$m1
|
||||
mount | grep "$mntpoint" | grep -q md$m1 && umount $mntpoint$m1
|
||||
mdconfig -l | grep -q md$m1 && mdconfig -d -u $m1
|
||||
|
@ -40,9 +40,8 @@ kldstat -v | grep -q pty || kldload pty # ignore any load failure
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export LOAD=80
|
||||
@ -61,5 +60,5 @@ su $testuser -c 'cd ..; ./testcases/run/run $TESTPROGS'
|
||||
while mount | grep "on $mntpoint " | grep -q /dev/md; do
|
||||
umount $mntpoint || sleep 1
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part
|
||||
checkfs /dev/md$mdstart
|
||||
mdconfig -d -u $mdstart
|
||||
|
@ -43,16 +43,15 @@ cd $odir
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
log=/tmp/stress2.d/bench.sh.log
|
||||
[ -f $log ] && old=`tail -1 $log | awk '{print $2}'`
|
||||
tmp=/tmp/bench.sh.tmp
|
||||
s=0
|
||||
for j in `jot 5`; do
|
||||
newfs -n -b 4096 -f 512 -i 1024 md${mdstart}$part > \
|
||||
newfs -n -b 4096 -f 512 -i 1024 md$mdstart > \
|
||||
/dev/null
|
||||
mount -o async /dev/md${mdstart}$part $mntpoint
|
||||
mount -o async /dev/md$mdstart $mntpoint
|
||||
/usr/bin/time sh -c "(cd $mntpoint; /tmp/bench)" 2>&1 | \
|
||||
awk '{print $1}'
|
||||
[ $? -ne 0 ] && s=1
|
||||
|
@ -50,9 +50,8 @@ set -e
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
set +e
|
||||
|
||||
cd $mntpoint
|
||||
|
@ -48,9 +48,8 @@ set -e
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
set +e
|
||||
|
||||
cd $mntpoint
|
||||
|
@ -50,9 +50,8 @@ cd $odir
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs -n md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs -n md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
(cd $mntpoint; /tmp/bio) &
|
||||
pid1=$!
|
||||
|
@ -45,9 +45,8 @@ mount | grep -q "on $mntpoint " && umount $mntpoint
|
||||
dd if=/dev/zero of=$diskimage bs=1m count=3k status=none
|
||||
trap "rm -f $diskimage" EXIT INT
|
||||
mdconfig -a -t vnode -f $diskimage -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount -o async /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount -o async /dev/md$mdstart $mntpoint
|
||||
|
||||
cd /usr/src
|
||||
export MAKEOBJDIRPREFIX=$mntpoint/obj
|
||||
|
@ -41,12 +41,11 @@
|
||||
[ -d /usr/src/sys ] || exit 0
|
||||
mount | grep -q "on $mntpoint " && umount $mntpoint
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
|
||||
export PATH_FSTAB=/tmp/fstab
|
||||
trap "rm -f $PATH_FSTAB" EXIT INT
|
||||
echo "/dev/md${mdstart}$part $mntpoint ufs rw,userquota 2 2" > $PATH_FSTAB
|
||||
echo "/dev/md$mdstart $mntpoint ufs rw,userquota 2 2" > $PATH_FSTAB
|
||||
mount $mntpoint
|
||||
set `df -ik $mntpoint | tail -1 | awk '{print $4,$7}'`
|
||||
export QK=$(($1 / 2))
|
||||
|
@ -38,10 +38,9 @@
|
||||
rm -f $diskimage
|
||||
mount | grep -q "on $mntpoint " && umount $mntpoint
|
||||
mdconfig -a -t swap -s 5g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
[ "$newfs_flags" = "-U" ] && newfs_flags="-j"
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
mount | grep $mntpoint
|
||||
|
||||
cd /usr/src
|
||||
|
@ -45,9 +45,8 @@ cd $odir
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs -n md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs -n md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
d=`date '+%Y%m%dT%H%M%S'`
|
||||
log=/tmp/burnin.$d.log
|
||||
mode=`pgrep -q cron && echo "Multi-user" || echo "Single-user"`
|
||||
|
@ -45,10 +45,9 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
# Don't use SU due to bogus "out of inodes" messages.
|
||||
newfs md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
daemon sh -c "(cd $here/../testcases/swap; ./swap -t 5m -i 20 -h -l 100)" \
|
||||
@ -58,7 +57,7 @@ su $testuser -c "/tmp/cmp $mntpoint" &
|
||||
|
||||
while kill -0 $! 2>/dev/null; do
|
||||
umount -f $mntpoint &&
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
sleep .1
|
||||
done
|
||||
|
@ -42,9 +42,8 @@ cd $RUNDIR
|
||||
mount | grep "on $mntpoint " | grep -q md$mdstart && umount $mntpoint
|
||||
[ -c /dev/mn$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
touch /tmp/continue
|
||||
for i in `jot 64`; do
|
||||
|
@ -49,9 +49,8 @@ cd $odir
|
||||
mount | grep -q "on $mntpoint " && umount $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
mkdir $mntpoint/d
|
||||
chmod 777 $mntpoint/d
|
||||
|
||||
@ -65,7 +64,7 @@ while pgrep -q core3; do
|
||||
done > /dev/null 2>&1 &
|
||||
while pgrep -q core3; do
|
||||
[ -d $mntpoint/d ] ||
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
done > /dev/null 2>&1
|
||||
wait $pid
|
||||
status=$?
|
||||
|
@ -45,11 +45,10 @@ mount | grep -q "$mntpoint" && umount $mntpoint
|
||||
mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
for i in `jot 20`; do
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
su $testuser -c "(cd $mntpoint; /tmp/core4)" &
|
||||
su $testuser -c "(cd $mntpoint; /tmp/core4)" &
|
||||
|
@ -91,10 +91,9 @@ mount | grep -q "on $mntpoint " && umount $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t malloc -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs -b 4096 -f 512 -i 2048 md${mdstart}$part > /dev/null
|
||||
mount -o async /dev/md${mdstart}$part $mntpoint || exit 1
|
||||
newfs -b 4096 -f 512 -i 2048 md$mdstart > /dev/null
|
||||
mount -o async /dev/md$mdstart $mntpoint || exit 1
|
||||
|
||||
cp /tmp/core5 $mntpoint
|
||||
mkdir $mntpoint/dir
|
||||
|
@ -48,8 +48,7 @@ if [ $# -eq 0 ]; then
|
||||
|
||||
dd if=/dev/zero of=$D$m bs=1m count=1 status=none
|
||||
mdconfig -a -t vnode -f $D$m -u $m
|
||||
bsdlabel -w md$m auto
|
||||
newfs $newfs_flags md${m}$part > /dev/null 2>&1
|
||||
newfs $newfs_flags md${m} > /dev/null 2>&1
|
||||
done
|
||||
|
||||
# start the parallel tests
|
||||
@ -77,7 +76,7 @@ else
|
||||
# The test: Parallel mount and unmounts
|
||||
for i in `jot 1024`; do
|
||||
m=$1
|
||||
mount /dev/md${m}$part ${mntpoint}$m
|
||||
mount /dev/md${m} ${mntpoint}$m
|
||||
while mount | grep -q "on ${mntpoint}$m "; do
|
||||
opt=$([ $((`date '+%s'` % 2)) -eq 0 ] &&
|
||||
echo "-f")
|
||||
|
@ -48,8 +48,7 @@ if [ $# -eq 0 ]; then
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
|
||||
mdconfig -a -t swap -s ${size}m -u $m
|
||||
bsdlabel -w md$m auto
|
||||
mke2fs -m 0 /dev/md${m}$part > /dev/null 2>&1
|
||||
mke2fs -m 0 /dev/md${m} > /dev/null 2>&1
|
||||
done
|
||||
|
||||
# start the parallel tests
|
||||
@ -83,7 +82,7 @@ else
|
||||
start=`date '+%s'`
|
||||
while [ $((`date '+%s'` - start)) -lt 300 ]; do
|
||||
m=$1
|
||||
mount -t ext2fs /dev/md${m}$part ${mntpoint}$m &&
|
||||
mount -t ext2fs /dev/md${m} ${mntpoint}$m &&
|
||||
chmod 777 ${mntpoint}$m
|
||||
export RUNDIR=${mntpoint}$m/stressX
|
||||
export CTRLDIR=${mntpoint}$m/stressX.control
|
||||
|
@ -64,8 +64,7 @@ if [ $# -eq 0 ]; then
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
|
||||
mdconfig -a -t swap -s ${size}m -u $m
|
||||
bsdlabel -w md$m auto
|
||||
newfs $newfs_flags md${m}$part > /dev/null 2>&1
|
||||
newfs $newfs_flags md${m} > /dev/null 2>&1
|
||||
done
|
||||
|
||||
# start the parallel tests
|
||||
@ -97,7 +96,7 @@ else
|
||||
export runRUNTIME=20s
|
||||
# The test: Parallel mount and unmounts
|
||||
for i in `jot 3`; do
|
||||
mount /dev/md${m}$part ${mntpoint}$m &&
|
||||
mount /dev/md${m} ${mntpoint}$m &&
|
||||
chmod 777 ${mntpoint}$m
|
||||
export RUNDIR=${mntpoint}$m/stressX
|
||||
export CTRLDIR=${mntpoint}$m/stressX.control
|
||||
|
@ -57,8 +57,7 @@ if [ $# -eq 0 ]; then
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
|
||||
mdconfig -a -t swap -s ${size}m -u $m
|
||||
bsdlabel -w md$m auto
|
||||
newfs $newfs_flags md${m}$part > /dev/null 2>&1
|
||||
newfs $newfs_flags md${m} > /dev/null 2>&1
|
||||
done
|
||||
|
||||
# start the parallel tests
|
||||
@ -89,7 +88,7 @@ else
|
||||
# The test: Parallel mount and unmounts
|
||||
for i in `jot 3`; do
|
||||
m=$1
|
||||
mount /dev/md${m}$part ${mntpoint}$m &&
|
||||
mount /dev/md${m} ${mntpoint}$m &&
|
||||
chmod 777 ${mntpoint}$m
|
||||
export RUNDIR=${mntpoint}$m/stressX
|
||||
export CTRLDIR=${mntpoint}$m/stressX.control
|
||||
|
@ -52,9 +52,8 @@ if [ $# -eq 0 ]; then
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s ${size}m -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null 2>&1
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null 2>&1
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
# start the parallel tests
|
||||
for i in `jot $mounts`; do
|
||||
|
@ -48,8 +48,7 @@ if [ $# -eq 0 ]; then
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
|
||||
mdconfig -a -t swap -s ${size}m -u $m
|
||||
bsdlabel -w md$m auto
|
||||
newfs $newfs_flags md${m}$part > /dev/null 2>&1
|
||||
newfs $newfs_flags md${m} > /dev/null 2>&1
|
||||
done
|
||||
|
||||
# start the parallel tests
|
||||
@ -77,7 +76,7 @@ else
|
||||
# The test: Parallel mount and unmount
|
||||
m=$1
|
||||
for i in `jot 200`; do
|
||||
mount /dev/md${m}$part ${mntpoint}$m
|
||||
mount /dev/md${m} ${mntpoint}$m
|
||||
chmod 777 ${mntpoint}$m
|
||||
l=`jot -r 1 65535`
|
||||
dd if=/dev/zero of=$mntpoint/$i bs=$l count=100 \
|
||||
|
@ -61,8 +61,7 @@ if [ $# -eq 0 ]; then
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
|
||||
mdconfig -a -t swap -s ${size}m -u $m
|
||||
bsdlabel -w md$m auto
|
||||
newfs md${m}$part > /dev/null 2>&1
|
||||
newfs md${m} > /dev/null 2>&1
|
||||
done
|
||||
|
||||
# start the parallel tests
|
||||
@ -100,7 +99,7 @@ else
|
||||
start=`date '+%s'`
|
||||
while [ $((`date '+%s'` - start)) -lt 300 ]; do
|
||||
m=$1
|
||||
mount /dev/md${m}$part ${mntpoint}$m &&
|
||||
mount /dev/md${m} ${mntpoint}$m &&
|
||||
chmod 777 ${mntpoint}$m
|
||||
export RUNDIR=${mntpoint}$m/stressX
|
||||
export CTRLDIR=${mntpoint}$m/stressX.control
|
||||
|
@ -47,8 +47,7 @@ if [ $# -eq 0 ]; then
|
||||
mdconfig -l | grep -q md$m && mdconfig -d -u $m
|
||||
|
||||
mdconfig -a -t swap -s 512m -u $m
|
||||
bsdlabel -w md$m auto
|
||||
newfs $newfs_flags md${m}$part > /dev/null 2>&1
|
||||
newfs $newfs_flags md${m} > /dev/null 2>&1
|
||||
done
|
||||
|
||||
# start the parallel tests
|
||||
@ -78,7 +77,7 @@ else
|
||||
start=`date '+%s'`
|
||||
while [ $((`date '+%s'` - start)) -lt 300 ] ; do
|
||||
m=$1
|
||||
mount /dev/md${m}$part ${mntpoint}$m
|
||||
mount /dev/md${m} ${mntpoint}$m
|
||||
while mount | grep -qw ${mntpoint}$m; do
|
||||
opt=$([ $((`date '+%s'` % 2)) -eq 0 ] &&
|
||||
echo "-f")
|
||||
|
@ -42,9 +42,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 4g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint || exit 1
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint || exit 1
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=4m
|
||||
|
@ -47,9 +47,8 @@ mount | grep -wq $mp2 && umount $mp2
|
||||
mount | grep -wq $mp1 && umount $mp1
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mp1
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mp1
|
||||
|
||||
mount -t nullfs $opt $mp1 $mp2
|
||||
chmod 777 $mp2
|
||||
|
@ -47,9 +47,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
su $testuser -c "(cd $mntpoint; /tmp/devfd)"
|
||||
|
@ -33,13 +33,12 @@
|
||||
|
||||
. ../default.cfg
|
||||
|
||||
mount | grep "$mntpoint" | grep md${mdstart}$part > /dev/null && umount $mntpoint
|
||||
mount | grep "$mntpoint" | grep md$mdstart > /dev/null && umount $mntpoint
|
||||
mdconfig -l | grep md$mdstart > /dev/null && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 512m -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
export RUNDIR=$mntpoint/stressX
|
||||
set `df -ik $mntpoint | tail -1 | awk '{print $4,$7}'`
|
||||
|
@ -36,9 +36,8 @@ dtrace -n 'dtrace:::BEGIN { exit(0); }' > /dev/null 2>&1 || exit 0
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=5m
|
||||
|
@ -45,9 +45,8 @@ set -e
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
set +e
|
||||
|
||||
cd $mntpoint
|
||||
|
@ -43,9 +43,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
su $testuser -c "cd $mntpoint; /tmp/exlock"
|
||||
|
@ -39,11 +39,12 @@ mount | grep "$mntpoint" | grep -q md$mdstart && umount -f $mntpoint
|
||||
mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
gpart create -s bsd md$mdstart > /dev/null
|
||||
gpart add -t freebsd-ufs md$mdstart > /dev/null
|
||||
mke2fs /dev/md${mdstart}a
|
||||
# No panic seen when disabling hashed b-tree lookup for large directories
|
||||
# tune2fs -O ^dir_index /dev/md${mdstart}$part
|
||||
mount -t ext2fs /dev/md${mdstart}$part $mntpoint
|
||||
# tune2fs -O ^dir_index /dev/md$mdstart
|
||||
mount -t ext2fs /dev/md${mdstart}a $mntpoint
|
||||
|
||||
export RUNDIR=$mntpoint/stressX
|
||||
export runRUNTIME=10m # Run tests for 10 minutes
|
||||
|
@ -42,14 +42,13 @@ mycc -o extattr -Wall extattr.c
|
||||
rm -f extattr.c
|
||||
cd $odir
|
||||
|
||||
mount | grep "$mntpoint" | grep -q md${mdstart}$part && umount $mntpoint
|
||||
mount | grep "$mntpoint" | grep -q md$mdstart && umount $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 20m -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs -O 2 md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs -O 2 md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
mkdir -p $mntpoint/.attribute/system
|
||||
cd $mntpoint/.attribute/system
|
||||
@ -58,9 +57,9 @@ extattrctl initattr -p . 388 posix1e.acl_access
|
||||
extattrctl initattr -p . 388 posix1e.acl_default
|
||||
cd /
|
||||
umount $mntpoint
|
||||
tunefs -a enable /dev/md${mdstart}$part
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount | grep md${mdstart}$part
|
||||
tunefs -a enable /dev/md$mdstart
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
mount | grep md$mdstart
|
||||
|
||||
touch $mntpoint/acl-test
|
||||
setfacl -b $mntpoint/acl-test
|
||||
|
@ -41,14 +41,13 @@
|
||||
[ -z "`which setfacl`" ] && exit 0
|
||||
|
||||
here=`pwd`
|
||||
mount | grep "$mntpoint" | grep -q md${mdstart}$part && umount $mntpoint
|
||||
mount | grep "$mntpoint" | grep -q md$mdstart && umount $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
mkdir -p $mntpoint/.attribute/system
|
||||
cd $mntpoint/.attribute/system
|
||||
@ -57,9 +56,9 @@ extattrctl initattr -p . 388 posix1e.acl_access
|
||||
extattrctl initattr -p . 388 posix1e.acl_default
|
||||
cd /
|
||||
umount $mntpoint
|
||||
tunefs -a enable /dev/md${mdstart}$part
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount | grep md${mdstart}$part
|
||||
tunefs -a enable /dev/md$mdstart
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
mount | grep md$mdstart
|
||||
|
||||
export runRUNTIME=10m
|
||||
export RUNDIR=$mntpoint/stressX
|
||||
@ -89,6 +88,6 @@ for i in `jot 6`; do
|
||||
[ $i -eq 6 ] &&
|
||||
{ echo FAIL; fstat -mf $mntpoint; exit 1; }
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part || s=1
|
||||
checkfs /dev/md$mdstart || s=1
|
||||
mdconfig -d -u $mdstart || s=2
|
||||
exit $s
|
||||
|
@ -43,9 +43,8 @@ rm -f extattr_set_fd.c
|
||||
mount | grep -q "$mntpoint" && umount $mntpoint
|
||||
mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
(cd $mntpoint; /tmp/extattr_set_fd)
|
||||
|
@ -43,14 +43,13 @@
|
||||
{ echo "Kernel not build with UFS_EXTATTR"; exit 0; }
|
||||
[ -z "`which setfacl`" ] && exit 0
|
||||
|
||||
mount | grep "$mntpoint" | grep -q md${mdstart}$part && umount $mntpoint
|
||||
mount | grep "$mntpoint" | grep -q md$mdstart && umount $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 20m -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs -O 1 md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs -O 1 md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
mkdir -p $mntpoint/.attribute/system
|
||||
cd $mntpoint/.attribute/system
|
||||
@ -59,9 +58,9 @@ extattrctl initattr -p . 388 posix1e.acl_access
|
||||
extattrctl initattr -p . 388 posix1e.acl_default
|
||||
cd /
|
||||
umount $mntpoint
|
||||
tunefs -a enable /dev/md${mdstart}$part
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount | grep md${mdstart}$part
|
||||
tunefs -a enable /dev/md$mdstart
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
mount | grep md$mdstart
|
||||
|
||||
touch $mntpoint/acl-test
|
||||
setfacl -b $mntpoint/acl-test
|
||||
|
@ -35,14 +35,13 @@ DUMP=$RUNDIR/dump
|
||||
trap "rm -f $D" EXIT INT
|
||||
dd if=/dev/zero of=$D bs=1m count=1024 status=none || exit 1
|
||||
|
||||
mount | grep "$mntpoint" | grep md${mdstart}$part > /dev/null &&
|
||||
mount | grep "$mntpoint" | grep md$mdstart > /dev/null &&
|
||||
umount $mntpoint
|
||||
mdconfig -l | grep md$mdstart > /dev/null && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t vnode -f $D -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
mount
|
||||
|
||||
for i in `jot 10`; do
|
||||
@ -52,7 +51,7 @@ for i in `jot 10`; do
|
||||
done
|
||||
done
|
||||
|
||||
dump -L0a -f $DUMP /dev/md${mdstart}$part
|
||||
dump -L0a -f $DUMP /dev/md$mdstart
|
||||
|
||||
ls -lf $DUMP
|
||||
|
||||
@ -62,8 +61,8 @@ while mount | grep -q $mntpoint; do
|
||||
done
|
||||
|
||||
for i in `jot 10`; do
|
||||
newfs $newfs_flags -n md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags -n md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
(cd $mntpoint; restore -rf $DUMP)
|
||||
rm -rf $mntpoint/*
|
||||
while mount | grep -q $mntpoint; do
|
||||
|
@ -44,9 +44,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 4g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
for i in `jot 3`; do
|
||||
|
@ -39,11 +39,10 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=20m
|
||||
|
@ -41,11 +41,10 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=20m
|
||||
|
@ -47,15 +47,14 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
(cd $mntpoint; /tmp/fifo)
|
||||
|
||||
for i in `jot 10`; do
|
||||
mount | grep -q md${mdstart}$part && \
|
||||
mount | grep -q md$mdstart && \
|
||||
umount $mntpoint && mdconfig -d -u $mdstart && break
|
||||
sleep 10
|
||||
done
|
||||
|
@ -45,9 +45,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
mkfifo $mntpoint/f
|
||||
chmod 777 $mntpoint/f
|
||||
@ -66,13 +65,13 @@ while [ $((`date '+%s'` - st)) -lt $((10 * sleeptime)) ]; do
|
||||
done
|
||||
|
||||
for i in `jot 10`; do
|
||||
mount | grep -q md${mdstart}$part && \
|
||||
mount | grep -q md$mdstart && \
|
||||
umount $mntpoint > /dev/null 2>&1 &&
|
||||
mdconfig -d -u $mdstart && break
|
||||
sleep 10
|
||||
done
|
||||
s=0
|
||||
mount | grep -q md${mdstart}$part &&
|
||||
mount | grep -q md$mdstart &&
|
||||
{ echo "umount $mntpoint failed"; s=1; }
|
||||
rm -f /tmp/fifo2
|
||||
exit $s
|
||||
|
@ -188,9 +188,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
(cd $mntpoint; /tmp/fifo3 ) &
|
||||
|
||||
|
@ -53,9 +53,8 @@ cd $odir
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
(cd $mntpoint; /tmp/flock)
|
||||
e=$?
|
||||
|
@ -46,9 +46,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
cp /bin/test $mntpoint
|
||||
@ -67,11 +66,11 @@ wait $pid
|
||||
s=$?
|
||||
|
||||
for i in `jot 10`; do
|
||||
mount | grep -q md${mdstart}$part && \
|
||||
mount | grep -q md$mdstart && \
|
||||
umount $mntpoint && mdconfig -d -u $mdstart && break
|
||||
sleep 2
|
||||
done
|
||||
if mount | grep -q md${mdstart}$part; then
|
||||
if mount | grep -q md$mdstart; then
|
||||
fstat $mntpoint
|
||||
echo "umount $mntpoint failed"
|
||||
exit 1
|
||||
|
@ -47,9 +47,8 @@ cd $odir
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 512m -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
su $testuser -c /tmp/forkbomb
|
||||
|
||||
|
@ -48,9 +48,8 @@ mount | grep "$mntpoint" | grep -q md$mdstart && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags -m 0 md${mdstart}$part > /dev/null 2>&1
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags -m 0 md$mdstart > /dev/null 2>&1
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
cd $mntpoint
|
||||
|
@ -37,8 +37,8 @@ ftest () { # option, disk full
|
||||
local args="$@"
|
||||
[ $2 -eq 1 ] && df=", disk full" || df=""
|
||||
echo "`date '+%T'` newfs $1 md${mdstart}${part}$df"
|
||||
newfs $1 md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $1 md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export RUNDIR=$mntpoint/stressX
|
||||
@ -67,14 +67,13 @@ ftest () { # option, disk full
|
||||
umount -f $mntpoint
|
||||
fi
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part || touch $flag
|
||||
checkfs /dev/md$mdstart || touch $flag
|
||||
}
|
||||
|
||||
mount | grep "on $mntpoint " | grep -q md${mdstart}$part && umount $mntpoint
|
||||
mount | grep "on $mntpoint " | grep -q md$mdstart && umount $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 20m -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
ftest "-O 1" 0 # ufs1
|
||||
ftest "-O 1" 1 # ufs1, disk full
|
||||
|
@ -47,9 +47,8 @@ echo "Expect: \"/mnt: write failed, filesystem is full\""
|
||||
mount | grep $mntpoint | grep -q "on $mntpoint " && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs md${mdstart}$part > /dev/null # Non SU panics
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs md$mdstart > /dev/null # Non SU panics
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
dir=$mntpoint
|
||||
chmod 777 $dir
|
||||
|
@ -44,11 +44,10 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=20m
|
||||
|
@ -272,9 +272,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
(cd $mntpoint; /tmp/fts2)
|
||||
|
||||
|
@ -44,9 +44,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 3g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
start=`date '+%s'`
|
||||
while [ $((`date '+%s'` - start)) -lt 120 ]; do
|
||||
|
@ -40,9 +40,8 @@ kldstat -v | grep -q pty || kldload pty # ignore any load failure
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export LOAD=80
|
||||
@ -62,6 +61,6 @@ for i in `jot 6`; do
|
||||
[ $i -eq 6 ] &&
|
||||
{ echo FATAL; fstat -mf $mntpoint; exit 1; }
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part; s=$?
|
||||
checkfs /dev/md$mdstart; s=$?
|
||||
mdconfig -d -u $mdstart
|
||||
exit $s
|
||||
|
@ -54,25 +54,24 @@ tst() {
|
||||
rm -f $D
|
||||
truncate -s 2M $D
|
||||
mdconfig -a -t vnode -f $D -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs -b 8192 -f 1024 $newfs_flags /dev/md${mdstart}$part > /dev/null 2>&1
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs -b 8192 -f 1024 $newfs_flags /dev/md$mdstart > /dev/null 2>&1
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
cp /etc/passwd /etc/group /etc/hosts $mntpoint
|
||||
cp -r /usr/include/ufs $mntpoint
|
||||
umount $mntpoint
|
||||
|
||||
for i in `jot 50`; do
|
||||
./fuzz -n 50 $D
|
||||
if fsck -f -y /dev/md${mdstart}$part 2>&1 | egrep "^[A-Z]" > /dev/null; then
|
||||
if fsck -f -y /dev/md${mdstart}$part 2>&1 | egrep "^[A-Z]" > /dev/null; then
|
||||
if fsck -f -y /dev/md${mdstart}$part 2>&1 | egrep "^[A-Z]" > /dev/null; then
|
||||
if fsck -f -y /dev/md$mdstart 2>&1 | egrep "^[A-Z]" > /dev/null; then
|
||||
if fsck -f -y /dev/md$mdstart 2>&1 | egrep "^[A-Z]" > /dev/null; then
|
||||
if fsck -f -y /dev/md$mdstart 2>&1 | egrep "^[A-Z]" > /dev/null; then
|
||||
echo "fsck is giving up in loop $i!"
|
||||
break
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
sync;sync;sync
|
||||
if mount /dev/md${mdstart}$part $mntpoint; then
|
||||
if mount /dev/md$mdstart $mntpoint; then
|
||||
ls -l $mntpoint > /dev/null
|
||||
find $mntpoint -exec dd if={} of=/dev/null bs=1m count=3 \; > /dev/null 2>&1
|
||||
umount $mntpoint
|
||||
|
@ -46,9 +46,8 @@ set -e
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
set +e
|
||||
|
||||
(cd $odir/../testcases/swap; ./swap -t 5m -i 40 -l 100) &
|
||||
|
@ -55,9 +55,8 @@ here=`pwd`
|
||||
cd $mntpoint
|
||||
dd if=/dev/zero of=image bs=1m count=1k status=none
|
||||
mdconfig -a -t vnode -f image -u $m
|
||||
bsdlabel -w md$m auto
|
||||
newfs md${m}$part > /dev/null
|
||||
mount /dev/md${m}$part $mp2
|
||||
newfs md${m} > /dev/null
|
||||
mount /dev/md${m} $mp2
|
||||
# dd will suspend in wdrain
|
||||
echo "Expect \"$mp2: write failed, filesystem is full\""
|
||||
dd if=/dev/zero of=$mp2/zero bs=1M > /dev/null 2>&1
|
||||
|
@ -50,9 +50,8 @@ cd $here
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 5g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
(cd $mntpoint; /tmp/holdcnt0) &
|
||||
pid=$!
|
||||
@ -62,7 +61,7 @@ while kill -0 $! 2> /dev/null; do
|
||||
done
|
||||
wait $pid; s=$?
|
||||
|
||||
while mount | grep -q md${mdstart}$part; do
|
||||
while mount | grep -q md$mdstart; do
|
||||
umount $mntpoint || sleep 1
|
||||
done
|
||||
mdconfig -d -u $mdstart
|
||||
|
@ -44,9 +44,8 @@ cd $here
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
(cd $mntpoint; /tmp/holdcnt04) &
|
||||
pid=$!
|
||||
@ -56,7 +55,7 @@ while kill -0 $! 2> /dev/null; do
|
||||
done
|
||||
wait $pid; s=$?
|
||||
|
||||
while mount | grep -q md${mdstart}$part; do
|
||||
while mount | grep -q md$mdstart; do
|
||||
umount $mntpoint || sleep 1
|
||||
done
|
||||
mdconfig -d -u $mdstart
|
||||
|
@ -42,17 +42,16 @@ cp -r ../../stress2 $D 2>/dev/null
|
||||
|
||||
mkisofs -o $I -r $D > /dev/null 2>&1
|
||||
|
||||
mount | grep -q /dev/md${mdstart}$part && umount -f /dev/md${mdstart}$part
|
||||
mount | grep -q /dev/md$mdstart && umount -f /dev/md${mdstart}
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t vnode -f $I -u $mdstart || exit 1
|
||||
mount -t cd9660 /dev/md$mdstart $mntpoint || exit 1
|
||||
|
||||
m2=$((mdstart + 1))
|
||||
mdconfig -s 1g -u $m2
|
||||
bsdlabel -w md$m2 auto
|
||||
newfs $newfs_flags md${m2}$part > /dev/null
|
||||
newfs $newfs_flags md${m2} > /dev/null
|
||||
|
||||
mount -o union /dev/md${m2}$part $mntpoint || exit 1
|
||||
mount -o union /dev/md${m2} $mntpoint || exit 1
|
||||
|
||||
export RUNDIR=$mntpoint/stressX
|
||||
export runRUNTIME=5m
|
||||
|
@ -44,9 +44,8 @@ set -e
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
set +e
|
||||
|
||||
(cd $odir/../testcases/swap; ./swap -t 5m -i 20 -h -l 100 > /dev/null) &
|
||||
|
@ -49,9 +49,8 @@ mount | grep "on $mntpoint " | grep -q md$mdstart && umount -f $mntpoint
|
||||
mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
su $testuser -c "(cd $mntpoint; /tmp/kevent6)"
|
||||
|
@ -53,9 +53,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
for i in `jot 5`; do
|
||||
@ -68,11 +67,11 @@ for i in `jot 5`; do
|
||||
done
|
||||
|
||||
for i in `jot 5`; do
|
||||
mount | grep -q md${mdstart}$part && \
|
||||
mount | grep -q md$mdstart && \
|
||||
umount $mntpoint && mdconfig -d -u $mdstart && break
|
||||
sleep 10
|
||||
done
|
||||
if mount | grep -q md${mdstart}$part; then
|
||||
if mount | grep -q md$mdstart; then
|
||||
fstat $mntpoint
|
||||
echo "umount $mntpoint failed"
|
||||
exit 1
|
||||
|
@ -46,9 +46,8 @@ mount | grep "on $mntpoint " | grep -q md$mdstart && umount -f $mntpoint
|
||||
mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
su $testuser -c "(cd $mntpoint; /tmp/kevent8)" &
|
||||
|
@ -48,9 +48,8 @@ set -e
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
set +e
|
||||
|
||||
cd $mntpoint
|
||||
|
@ -42,12 +42,11 @@ cd $here
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
[ $# -eq 1 ] && opt="$1"
|
||||
[ $# -eq 0 ] && opt=$newfs_flags # No argument == default flag
|
||||
echo "newfs $opt md${mdstart}$part"
|
||||
newfs $opt md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
echo "newfs $opt md$mdstart"
|
||||
newfs $opt md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
if ! su $testuser -c "cd $mntpoint; /tmp/linger $size"; then
|
||||
|
@ -42,11 +42,10 @@ cd $here
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
[ $# -eq 1 ] && opt="$1"
|
||||
[ $# -eq 0 ] && opt=$newfs_flags # No argument == default flag
|
||||
newfs $opt -n md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $opt -n md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
set `df -i $mntpoint | tail -1 | awk '{print $3, $6}'`
|
||||
|
||||
|
@ -42,12 +42,11 @@ mount | grep "$mntpoint" | grep -q md$mdstart && umount $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
[ $# -eq 1 ] && opt="$1"
|
||||
[ $# -eq 0 ] && opt=$newfs_flags # No argument == default flag
|
||||
echo "newfs $opt md${mdstart}$part"
|
||||
newfs $opt md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
echo "newfs $opt md$mdstart"
|
||||
newfs $opt md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
cd $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
@ -42,12 +42,11 @@ mount | grep "$mntpoint" | grep -q md$mdstart && umount $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
[ $# -eq 1 ] && opt="$1"
|
||||
[ $# -eq 0 ] && opt="$newfs_flags -n" # No argument == default flag
|
||||
echo "newfs $opt md${mdstart}$part"
|
||||
newfs $opt md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
echo "newfs $opt md$mdstart"
|
||||
newfs $opt md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
cd $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
@ -45,9 +45,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
daemon sh -c "(cd $here/../testcases/swap; ./swap -t 5m -i 20 -h -l 100)" \
|
||||
> /dev/null 2>&1
|
||||
@ -55,7 +54,7 @@ daemon sh -c "(cd $here/../testcases/swap; ./swap -t 5m -i 20 -h -l 100)" \
|
||||
|
||||
for i in `jot 100`; do
|
||||
umount -f $mntpoint &&
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
sleep .1
|
||||
done
|
||||
pkill -9 link
|
||||
|
@ -42,9 +42,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
daemon sh -c "(cd $here/../testcases/swap; ./swap -t 5m -i 20 -h -l 100)" \
|
||||
> /dev/null 2>&1
|
||||
@ -53,7 +52,7 @@ daemon sh -c "(cd $here/../testcases/swap; ./swap -t 5m -i 20 -h -l 100)" \
|
||||
m1=`vmstat -m | awk '/ mount/ {print $2}'`
|
||||
for i in `jot 100`; do
|
||||
umount -f $mntpoint &&
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
sleep .1
|
||||
done
|
||||
m2=`vmstat -m | awk '/ mount/ {print $2}'`
|
||||
|
@ -40,10 +40,9 @@ mount | grep -q "$mntpoint" && umount $mntpoint
|
||||
mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 40m -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
cd $mntpoint
|
||||
for i in `jot 3`; do
|
||||
|
@ -42,9 +42,8 @@ cd $odir
|
||||
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
su $testuser -c "(cd $mntpoint; /tmp/lockf4)" &
|
||||
|
@ -44,9 +44,8 @@ cd $odir
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs -n -b 4096 -f 512 -i 1024 md${mdstart}$part > /dev/null
|
||||
mount -o async /dev/md${mdstart}$part $mntpoint || exit 1
|
||||
newfs -n -b 4096 -f 512 -i 1024 md$mdstart > /dev/null
|
||||
mount -o async /dev/md$mdstart $mntpoint || exit 1
|
||||
|
||||
path=$mntpoint/a/b/c
|
||||
mkdir -p $path
|
||||
|
@ -35,15 +35,14 @@ exit 0 # Not part of the kernel
|
||||
|
||||
sysctl -a | ! grep -q security.mac.chkexec && echo "chkexec.ko must be loaded" && exit 1
|
||||
|
||||
mount | grep "$mntpoint" | grep -q md${mdstart}$part && umount $mntpoint
|
||||
mount | grep "$mntpoint" | grep -q md$mdstart && umount $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 12m -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs md${mdstart}$part > /dev/null
|
||||
tunefs -l enable /dev/md${mdstart}$part
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs md$mdstart > /dev/null
|
||||
tunefs -l enable /dev/md$mdstart
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
cp /bin/ls $mntpoint
|
||||
setfmac chkexec/md5:`md5 -q $mntpoint/ls` $mntpoint/ls
|
||||
|
@ -35,9 +35,8 @@
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=20m
|
||||
@ -50,6 +49,6 @@ while mount | grep $mntpoint | grep -q /dev/md; do
|
||||
umount $mntpoint || sleep 1
|
||||
[ $((n += 1)) -gt 300 ] && { echo FAIL; exit 1; }
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part; s=$?
|
||||
checkfs /dev/md$mdstart; s=$?
|
||||
mdconfig -d -u $mdstart
|
||||
exit $s
|
||||
|
@ -39,9 +39,8 @@
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=20m
|
||||
@ -68,6 +67,6 @@ while mount | grep $mntpoint | grep -q /dev/md; do
|
||||
umount $mntpoint || sleep 1
|
||||
[ $((n += 1)) -gt 300 ] && { echo FAIL; exit 1; }
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part; s=$?
|
||||
checkfs /dev/md$mdstart; s=$?
|
||||
mdconfig -d -u $mdstart
|
||||
exit $s
|
||||
|
@ -39,9 +39,8 @@
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 5g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
size=$((`sysctl -n hw.physmem` / 1024 / 1024))
|
||||
@ -80,6 +79,6 @@ while mount | grep $mntpoint | grep -q /dev/md; do
|
||||
umount $mntpoint || sleep 1
|
||||
[ $((n += 1)) -gt 300 ] && { echo FAIL; exit 1; }
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part; s=$!
|
||||
checkfs /dev/md$mdstart; s=$!
|
||||
mdconfig -d -u $mdstart
|
||||
exit $s
|
||||
|
@ -38,9 +38,8 @@
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 5g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
size=$((`sysctl -n hw.physmem` / 1024 / 1024))
|
||||
@ -78,6 +77,6 @@ while mount | grep $mntpoint | grep -q /dev/md; do
|
||||
umount $mntpoint || sleep 1
|
||||
[ $((n += 1)) -gt 60 ] && { echo "Timed out"; exit 1; }
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part; s=$!
|
||||
checkfs /dev/md$mdstart; s=$!
|
||||
mdconfig -d -u $mdstart
|
||||
exit $s
|
||||
|
@ -42,9 +42,8 @@
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 5g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
size=$((`sysctl -n hw.physmem` / 1024 / 1024))
|
||||
@ -85,6 +84,6 @@ while mount | grep $mntpoint | grep -q /dev/md; do
|
||||
umount $mntpoint || sleep 1
|
||||
[ $((n += 1)) -gt 300 ] && { echo FAIL; exit 1; }
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part; s=$!
|
||||
checkfs /dev/md$mdstart; s=$!
|
||||
mdconfig -d -u $mdstart
|
||||
exit $s
|
||||
|
@ -33,13 +33,12 @@
|
||||
|
||||
. ../default.cfg
|
||||
|
||||
mount | grep "$mntpoint" | grep md${mdstart}$part > /dev/null && umount $mntpoint
|
||||
mount | grep "$mntpoint" | grep md$mdstart > /dev/null && umount $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2m -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
export RUNDIR=$mntpoint/stressX
|
||||
export KBLOCKS=30000 # Exaggerate disk capacity
|
||||
|
@ -36,10 +36,9 @@ mount | grep -q "$mntpoint" && umount $mntpoint
|
||||
mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1400m -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
# Stop FS "out of inodes" problem by only using 70%
|
||||
set `df -ik $mntpoint | tail -1 | awk '{print $4,$7}'`
|
||||
|
@ -31,6 +31,7 @@
|
||||
# Fixed in r250966.
|
||||
|
||||
[ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
|
||||
[ -z "`which bsdlabel`" ] && exit 0
|
||||
|
||||
status=0
|
||||
MD_DEV=`mdconfig -an -t swap -s 1m -x 63 -y 16`
|
||||
|
@ -43,9 +43,8 @@ mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
diskimage=$mp2/diskimage
|
||||
dd if=/dev/zero of=$diskimage bs=1m count=2k status=none
|
||||
mdconfig -a -t vnode -f $diskimage -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs -U /dev/md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs -U /dev/md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
for i in `jot 10`; do
|
||||
umount $mntpoint && break
|
||||
|
@ -37,7 +37,6 @@
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 512m -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
|
@ -38,11 +38,10 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 20m -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=5m
|
||||
|
@ -39,11 +39,10 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=30s
|
||||
|
@ -42,9 +42,8 @@ sysctl vm.memguard.frequency=1000
|
||||
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 5g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=5m
|
||||
@ -55,7 +54,7 @@ su $testuser -c 'cd ..; ./run.sh marcus.cfg'
|
||||
while mount | grep $mntpoint | grep -q /dev/md; do
|
||||
umount $mntpoint || sleep 1
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part; s=$?
|
||||
checkfs /dev/md$mdstart; s=$?
|
||||
mdconfig -d -u $mdstart
|
||||
|
||||
sysctl vm.memguard.frequency=0 > /dev/null
|
||||
|
@ -38,11 +38,10 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=5m
|
||||
|
@ -44,11 +44,10 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
[ "$newfs_flags" = "-U" ] && opt="-j"
|
||||
newfs $opt md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $opt md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=20m
|
||||
|
@ -45,12 +45,11 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
[ $# -eq 1 ] && opt="$1"
|
||||
[ $# -eq 0 ] && opt="-j"
|
||||
newfs $opt md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $opt md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=20m
|
||||
|
@ -39,10 +39,9 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount -o async /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount -o async /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
export runRUNTIME=5m
|
||||
|
@ -46,9 +46,8 @@ set -e
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
set +e
|
||||
|
||||
cd $mntpoint
|
||||
|
@ -56,9 +56,8 @@ cd $odir
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 512m -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags -n md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint || exit 1
|
||||
newfs $newfs_flags -n md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint || exit 1
|
||||
|
||||
(cd $mntpoint; /tmp/mlockall5 || echo FAIL)
|
||||
|
||||
|
@ -46,9 +46,8 @@ cd $odir
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 512m -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags -n md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint || exit 1
|
||||
newfs $newfs_flags -n md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint || exit 1
|
||||
|
||||
daemon sh -c "(cd $odir/../testcases/swap; ./swap -t 20m -i 20 -l 100)" \
|
||||
> /dev/null 2>&1
|
||||
|
@ -45,9 +45,8 @@ cd $odir
|
||||
|
||||
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs $newfs_flags md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs $newfs_flags md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
chmod 777 $mntpoint
|
||||
|
||||
cp /tmp/mmap24 $mntpoint
|
||||
|
@ -13,9 +13,8 @@
|
||||
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
|
||||
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
|
||||
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
|
||||
bsdlabel -w md$mdstart auto
|
||||
newfs -U md${mdstart}$part > /dev/null
|
||||
mount /dev/md${mdstart}$part $mntpoint
|
||||
newfs -U md$mdstart > /dev/null
|
||||
mount /dev/md$mdstart $mntpoint
|
||||
|
||||
mkdir $mntpoint/mmap29
|
||||
cd /tmp
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user