mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix tests for lazy sb counter defaults
Fix tests which would be affected by a change to lazy-sb by default. All tests now explicitly -specify- -l lazy-sb=1 where appropriate, so this can go in prior to a userspace change. Unfortunately many of the logprint outputs must just be taken on faith. Also, the irix flavors for e.g. 018.op.irix will need fixing up if anyone cares. This also needs the patch I just sent for xfs_db clearing attr2 in bad_features2 to complete w/o error. Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
+134
-650
File diff suppressed because it is too large
Load Diff
@@ -1,17 +1,17 @@
|
||||
QA output created by 018
|
||||
*** init FS
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-lversion=1.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-lversion=1.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-lversion=1.filtered
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=64k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=64k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=64k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=128k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=128k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=128k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=256k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=256k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=256k.mkfs-lsize=2000b-lversion=2.filtered
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=1.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=1.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=1.filtered
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=64k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=64k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=64k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=128k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=128k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=128k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.op with 018.fulldir/op.mnt-onoalign,logbsize=256k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_inode with 018.fulldir/trans_inode.mnt-onoalign,logbsize=256k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
*** compare logprint: 018.trans_buf with 018.fulldir/trans_buf.mnt-onoalign,logbsize=256k.mkfs-lsize=2000b-llazy-count=1-lversion=2.filtered
|
||||
|
||||
+102
-601
File diff suppressed because it is too large
Load Diff
+1235
-1534
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
QA output created by 081
|
||||
*** init FS
|
||||
*** compare logprint: 081.ugquota.trans_inode with 081.fulldir/trans_inode.mnt-oquota,gquota.mkfs-lsize=2000b-lversion=1.filtered
|
||||
*** compare logprint: 081.ugquota.trans_inode with 081.fulldir/trans_inode.mnt-oquota,gquota.mkfs-lsize=2000b-llazy-count=1-lversion=1.filtered
|
||||
*** unmount
|
||||
|
||||
+108
-413
File diff suppressed because it is too large
Load Diff
+134
-650
File diff suppressed because it is too large
Load Diff
@@ -1,39 +1,39 @@
|
||||
QA output created by 082
|
||||
*** init FS
|
||||
--- mkfs=version=2, mnt=logbsize=32k, sync=sync ---
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2.sync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2.sync.filtered
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2.sync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2.sync.filtered
|
||||
--- mkfs=version=2,su=4096, mnt=logbsize=32k, sync=sync ---
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=4096.sync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=4096.sync.filtered
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=4096.sync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=4096.sync.filtered
|
||||
--- mkfs=version=2,su=32768, mnt=logbsize=32k, sync=sync ---
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=32768.sync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=32768.sync.filtered
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=32768.sync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=32768.sync.filtered
|
||||
--- mkfs=version=2,su=36864, mnt=logbsize=32k, sync=sync ---
|
||||
|
||||
*** Cannot mkfs for this test using option specified: -l size=2000b -l version=2,su=36864 ***
|
||||
*** Cannot mkfs for this test using option specified: -l size=2000b -l lazy-count=1 -l version=2,su=36864 ***
|
||||
|
||||
--- mkfs=version=2,su=5120, mnt=logbsize=32k, sync=sync ---
|
||||
|
||||
*** Cannot mkfs for this test using option specified: -l size=2000b -l version=2,su=5120 ***
|
||||
*** Cannot mkfs for this test using option specified: -l size=2000b -l lazy-count=1 -l version=2,su=5120 ***
|
||||
|
||||
--- mkfs=version=2, mnt=logbsize=32k, sync=nosync ---
|
||||
*** compare logprint: 082.op with 082.fulldir/op.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2.nosync.filtered
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2.nosync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2.nosync.filtered
|
||||
*** compare logprint: 082.op with 082.fulldir/op.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2.nosync.filtered
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2.nosync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2.nosync.filtered
|
||||
--- mkfs=version=2,su=4096, mnt=logbsize=32k, sync=nosync ---
|
||||
*** compare logprint: 082.op with 082.fulldir/op.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=4096.nosync.filtered
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=4096.nosync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=4096.nosync.filtered
|
||||
*** compare logprint: 082.op with 082.fulldir/op.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=4096.nosync.filtered
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=4096.nosync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=4096.nosync.filtered
|
||||
--- mkfs=version=2,su=32768, mnt=logbsize=32k, sync=nosync ---
|
||||
*** compare logprint: 082.op with 082.fulldir/op.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=32768.nosync.filtered
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=32768.nosync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-lversion=2,su=32768.nosync.filtered
|
||||
*** compare logprint: 082.op with 082.fulldir/op.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=32768.nosync.filtered
|
||||
*** compare logprint: 082.trans_inode with 082.fulldir/trans_inode.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=32768.nosync.filtered
|
||||
*** compare logprint: 082.trans_buf with 082.fulldir/trans_buf.mnt-ologbsize=32k.mkfs-lsize=2000b-llazy-count=1-lversion=2,su=32768.nosync.filtered
|
||||
--- mkfs=version=2,su=36864, mnt=logbsize=32k, sync=nosync ---
|
||||
|
||||
*** Cannot mkfs for this test using option specified: -l size=2000b -l version=2,su=36864 ***
|
||||
*** Cannot mkfs for this test using option specified: -l size=2000b -l lazy-count=1 -l version=2,su=36864 ***
|
||||
|
||||
--- mkfs=version=2,su=5120, mnt=logbsize=32k, sync=nosync ---
|
||||
|
||||
*** Cannot mkfs for this test using option specified: -l size=2000b -l version=2,su=5120 ***
|
||||
*** Cannot mkfs for this test using option specified: -l size=2000b -l lazy-count=1 -l version=2,su=5120 ***
|
||||
|
||||
|
||||
+102
-601
File diff suppressed because it is too large
Load Diff
+1235
-1534
File diff suppressed because it is too large
Load Diff
@@ -148,7 +148,7 @@ _supported_os Linux
|
||||
_require_scratch
|
||||
rm -f $seq.full
|
||||
|
||||
_scratch_mkfs -i attr=2,size=512 >/dev/null 2>&1
|
||||
_scratch_mkfs -i attr=2,size=512 -l lazy-count=1 >/dev/null 2>&1
|
||||
|
||||
# set inum to root dir ino
|
||||
# we'll add in dirents and EAs into the root directory
|
||||
|
||||
@@ -68,7 +68,7 @@ export MOUNT_OPTIONS=""
|
||||
# Make sure that when we think we are testing with morebits off
|
||||
# that we really are.
|
||||
# Trying to future-proof in case mkfs defaults change.
|
||||
_scratch_mkfs -i attr=1 >/dev/null 2>&1
|
||||
_scratch_mkfs -i attr=1 -l lazy-count=0 >/dev/null 2>&1
|
||||
$XFS_DB_PROG -c version $SCRATCH_DEV 2>&1 >$tmp.db
|
||||
if grep -i morebits $tmp.db
|
||||
then
|
||||
|
||||
@@ -50,7 +50,7 @@ _supported_os Linux
|
||||
|
||||
_require_scratch
|
||||
|
||||
_scratch_mkfs_xfs >/dev/null 2>&1
|
||||
_scratch_mkfs_xfs -l lazy-count=1 >/dev/null 2>&1
|
||||
|
||||
#
|
||||
# Print the current flags. Just a dummy so that the test breaks
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
QA output created by 199
|
||||
Default feature2 flags:
|
||||
features2 = 0x8
|
||||
bad_features2 = 0x8
|
||||
features2 = 0xa
|
||||
bad_features2 = 0xa
|
||||
Clearing features2:
|
||||
features2 = 0
|
||||
Features 2 after mount rw:
|
||||
features2 = 0x8
|
||||
features2 = 0xa
|
||||
Clearing features2:
|
||||
features2 = 0
|
||||
Features 2 after mount ro and remount rw:
|
||||
features2 = 0x8
|
||||
features2 = 0xa
|
||||
*** done
|
||||
|
||||
+1
-1
@@ -286,7 +286,7 @@ _mkfs_log()
|
||||
{
|
||||
# create the FS
|
||||
# mkfs options to append to log size otion can be specified ($*)
|
||||
export MKFS_OPTIONS="-l size=2000b $*"
|
||||
export MKFS_OPTIONS="-l size=2000b -l lazy-count=1 $*"
|
||||
_full "mkfs"
|
||||
_scratch_mkfs_xfs >>$seq.full 2>&1
|
||||
if [ $? -ne 0 ] ; then
|
||||
|
||||
Reference in New Issue
Block a user