mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Modify log/v2-log qa tests to run on IRIX as well as Linux.
Cater for IRIX without unmount record at start of log and for IRIX' hopeless mount option handling.
This commit is contained in:
@@ -67,29 +67,38 @@ _supported_os IRIX Linux
|
||||
rm -f $seq.full $tmp.*
|
||||
_require_scratch
|
||||
|
||||
# link correct .out file
|
||||
_link_out_file $seq.op
|
||||
|
||||
|
||||
echo "*** init FS"
|
||||
umount $SCRATCH_DEV >/dev/null 2>&1
|
||||
|
||||
cat >$tmp.seq.params <<EOF
|
||||
# mkfs-opt mount-opt
|
||||
-lversion=1 -ologbsize=32k
|
||||
-lversion=2 -ologbsize=32k
|
||||
-lversion=2 -ologbsize=64k
|
||||
-lversion=2 -ologbsize=128k
|
||||
-lversion=2 -ologbsize=256k
|
||||
version=1 logbsize=32k
|
||||
version=2 logbsize=32k
|
||||
version=2 logbsize=64k
|
||||
version=2 logbsize=128k
|
||||
version=2 logbsize=256k
|
||||
EOF
|
||||
|
||||
if [ "$HOSTOS" = "IRIX" ]; then
|
||||
start_blk=0
|
||||
else
|
||||
start_blk=2
|
||||
fi
|
||||
|
||||
# do the work for various log params which
|
||||
# should not effect the data content of the log
|
||||
cat $tmp.seq.params \
|
||||
| while read mkfs mnt restofline
|
||||
| while read mkfs mnt
|
||||
do
|
||||
if [ "$mkfs" = "#" ]; then
|
||||
continue
|
||||
fi
|
||||
export MKFS_OPTIONS=$mkfs
|
||||
export MOUNT_OPTIONS=$mnt
|
||||
|
||||
export MKFS_OPTIONS="-l $mkfs"
|
||||
export MOUNT_OPTIONS="-o $mnt"
|
||||
_mkfs_log
|
||||
_create_log
|
||||
_check_log
|
||||
@@ -97,10 +106,10 @@ do
|
||||
_print_operation
|
||||
_cmp_op_output $seq.op $filtered
|
||||
|
||||
_print_transaction_inode 2
|
||||
_print_transaction_inode $start_blk
|
||||
_cmp_output $seq.trans_inode $filtered
|
||||
|
||||
_print_transaction_buf 2
|
||||
_print_transaction_buf $start_blk
|
||||
_cmp_output $seq.trans_buf $filtered
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user