This commit is contained in:
2026-08-18 09:20:44 +02:00
commit b826cd721a
522 changed files with 93730 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# Test Case: Inline user xattrs
**Test ID**: TC005-inline-xattr-user
**Fixture**: `basic.erofs`, `/inline-user`
## Objective
Verify inline `user` namespace list/get and binary-value handling on FreeBSD.
Generate and qualify the image as described in `G4-MANUAL-SETUP.md`; the
manifest must classify `comment` and `special.chars` as inline entries.
## Manual steps
```sh
unit=$(mdconfig -a -t vnode -f /tmp/repo22-g4/images/basic.erofs)
mount -t erofs -o ro /dev/${unit} /mnt/repo22-g4
stat -f 'mode=%Sp size=%z inode=%i' /mnt/repo22-g4/inline-user
lsextattr user /mnt/repo22-g4/inline-user
getextattr -qq -x user comment /mnt/repo22-g4/inline-user
getextattr -qq -x user special.chars /mnt/repo22-g4/inline-user
truss -o /tmp/tc005.truss getextattr -qq user missing /mnt/repo22-g4/inline-user
grep extattr_get_file /tmp/tc005.truss
umount /mnt/repo22-g4
mdconfig -d -u "${unit#md}"
```
## Expected results
The names appear once. `comment` is hex
`696e6c696e652d757365722d76616c7565007461696c`; `special.chars` is
`7370656369616c2d76616c7565`. The missing name returns `ENOATTR` (87), and
cleanup leaves no mount or md provider.