Files
erofs-freebsd-out-tree/tests/TC056-getattr-special.md
T
2026-08-18 09:20:44 +02:00

902 B

Test Case: getattr Special Files

Test ID: TC056-getattr-special Category: Vnode Operations Priority: Critical

Objective

Verify compact and extended char, block, and FIFO inodes expose exact types, device numbers, zero size/allocation, and stable generation.

Procedure

On fresh mounts of metadata/special-compact.erofs and metadata/special-extended.erofs:

./stat_special char /tmp/repo22-g3/mnt/char-large 2748 344865
./stat_special block /tmp/repo22-g3/mnt/block-large 2748 344865
./stat_special fifo /tmp/repo22-g3/mnt/fifo
stat -f 'name=%N type=%HT size=%z blocks=%b gen=%v' \
  /tmp/repo22-g3/mnt/char-large \
  /tmp/repo22-g3/mnt/block-large \
  /tmp/repo22-g3/mnt/fifo

Expected Results

All type/rdev probes pass; each special inode has size and st_blocks zero and a nonzero generation. Record both fixture hashes and clean each mount/md.