mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
7c9748f836
Ever since commit 7e2a19504 ("ls -l reports different file size
depending on platform and user.") xfs/066 has been running stat on
the dump/restore directory instead of the large file that the test
is checking can be dumped and restored correctly. IOWs, it's not
been checking the correct thing for almost 10 years.
This test fails on CRC enabled filesystems because the shortform
directory entry size is different (an extra byte for the filetype
filed), and this is where tracking down the failure has lead me.
Fix this by using the correct target file, and improve it by dumping
an md5sum of the source and target files to ensure they contain the
same data.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
QA output created by 066
|
|
dd a largefile at offset 4294967297
|
|
10+0 records in
|
|
10+0 records out
|
|
ls dumpdir/largefile
|
|
4294967307 largefile
|
|
e2664609cb95c2215732cf4e71e45017 SCRATCH_MNT/dumpdir/largefile
|
|
Dumping to file...
|
|
xfsdump -f DUMP_FILE -M stress_tape_media -L stress_066 SCRATCH_MNT
|
|
xfsdump: using file dump (drive_simple) strategy
|
|
xfsdump: level 0 dump of HOSTNAME:SCRATCH_MNT
|
|
xfsdump: dump date: DATE
|
|
xfsdump: session id: ID
|
|
xfsdump: session label: "stress_066"
|
|
xfsdump: ino map <PHASES>
|
|
xfsdump: ino map construction complete
|
|
xfsdump: estimated dump size: NUM bytes
|
|
xfsdump: /var/xfsdump/inventory created
|
|
xfsdump: creating dump session media file 0 (media 0, file 0)
|
|
xfsdump: dumping ino map
|
|
xfsdump: dumping directories
|
|
xfsdump: dumping non-directory files
|
|
xfsdump: ending media file
|
|
xfsdump: media file size NUM bytes
|
|
xfsdump: dump size (non-dir files) : NUM bytes
|
|
xfsdump: dump complete: SECS seconds elapsed
|
|
xfsdump: Dump Status: SUCCESS
|
|
Restoring from file...
|
|
xfsrestore -f DUMP_FILE -L stress_066 RESTORE_DIR
|
|
xfsrestore: using file dump (drive_simple) strategy
|
|
xfsrestore: using online session inventory
|
|
xfsrestore: searching media for directory dump
|
|
xfsrestore: examining media file 0
|
|
xfsrestore: reading directories
|
|
xfsrestore: 2 directories and 2 entries processed
|
|
xfsrestore: directory post-processing
|
|
xfsrestore: restoring non-directory files
|
|
xfsrestore: restore complete: SECS seconds elapsed
|
|
xfsrestore: Restore Status: SUCCESS
|
|
ls restoredir/largefile
|
|
4294967307 largefile
|
|
e2664609cb95c2215732cf4e71e45017 SCRATCH_MNT/restoredir/dumpdir/largefile
|