Files
erofs-freebsd-out-tree/tests/TC031-flat-inline-normal.md
T
2026-08-13 10:44:59 +02:00

29 lines
772 B
Markdown

# Test Case: FLAT_INLINE Small File
**Test ID**: TC031-flat-inline-normal
## Objective
Verify a small uncompressed `FLAT_INLINE` payload stored in the inode metadata
area and bounded by its metadata block.
## Fixture
Use `images/inline.erofs` and `source/inline/tiny.txt`. Evidence asserts layout
2, compact inode, NID, and size.
## Procedure
```sh
stat -f 'size=%z blocks=%b mode=%p' "$mnt/tiny.txt"
cmp /tmp/repo22-g1/source/inline/tiny.txt "$mnt/tiny.txt"
sha256 /tmp/repo22-g1/source/inline/tiny.txt "$mnt/tiny.txt"
```
## Expected Results
- Layout is 2 and size/content match the source.
- FreeBSD reports 8 allocated 512-byte sectors for the 4096-byte EROFS
allocation unit; zero blocks is not the current qualified semantic.
- Mount and cleanup succeed.