common/log: add _get_log_configs for testing options
[xfstests-dev.git] / tests / xfs / 087
index e4bc418180784188877c2a366901751473ded39d..8da0f9c697ea77faa381b692d3e18152319657d7 100755 (executable)
@@ -26,8 +26,6 @@
 
 seq=`basename $0`
 seqres=$RESULT_DIR/$seq
-seqres=$RESULT_DIR/$seq
-seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
 
 here=`pwd`
@@ -61,25 +59,15 @@ _supported_os IRIX Linux
 
 rm -f $seqres.full $tmp.*
 _require_scratch
+_require_scratch_shutdown
+_require_logstate
 _require_v2log 
 _require_xfs_quota
 
 echo "*** init FS"
 umount $SCRATCH_DEV >/dev/null 2>&1
 
-cat >$tmp.seq.params <<EOF
-# mkfs-opt             mount-opt
-# ------------------------------
-  version=2            logbsize=32k
-  version=2,su=4096    logbsize=32k
-  version=2,su=32768   logbsize=32k
-  version=2            logbsize=64k
-  version=2,su=64k     logbsize=64k
-  version=2            logbsize=128k
-  version=2,su=128k    logbsize=128k
-  version=2            logbsize=256k
-  version=2,su=256k    logbsize=256k
-EOF
+_get_log_configs > $tmp.seq.params
 
 cat $tmp.seq.params \
 | while read mkfs mnt restofline
@@ -88,7 +76,7 @@ do
        continue
     fi
 
-    echo "--- mkfs=$mkfs, mnt=$mnt ---"
+    echo "--- mkfs=$mkfs, mnt=$mnt ---" >> $seqres.full
     export MKFS_OPTIONS="-l $mkfs"
     export MOUNT_OPTIONS="-o $mnt"