Files
erofs-freebsd-out-tree/tests/TC023-extended-inode-normal.md
T
2026-08-13 10:44:59 +02:00

28 lines
850 B
Markdown

# Test Case: Extended Inode Decoding
**Test ID**: TC023-extended-inode-normal
## Objective
Verify a real 64-byte extended regular inode, including size, full-width
metadata, timestamps, and source-exact content.
## Fixture
Use `images/extended.erofs` and `source/extended/large-file.bin`.
`fixture-evidence.txt` records the NID, byte offset, size, and `inode_size=64`.
## Procedure
```sh
stat -f 'ino=%i size=%z mode=%p nlink=%l mtime=%m ctime=%c blocks=%b' "$mnt/large-file.bin"
cmp /tmp/repo22-g1/source/extended/large-file.bin "$mnt/large-file.bin"
sha256 /tmp/repo22-g1/source/extended/large-file.bin "$mnt/large-file.bin"
```
## Expected Results
- The file reports the evidence/source size, regular `0644`, link count 1,
deterministic timestamps, and a 64-byte on-disk inode.
- Full source compare and SHA256 match; cleanup succeeds.