notes

The wire decisions, and why

Name: ratified 2026-10-18 (calef, convention-rulings Rule 3).

An appendix to notes/smb.md. The code it describes was removed on 2026-08-30; read every present tense as "as of 685900ec". These were the expensive-to-reverse choices (AGENTS.md, "anything two programs agree on"), listed so review could happen where the cost is.

Transport, dialect and identity

The share, and read-only

Free space

Free space is the image's, through fs_proto's GET_VOLUME_STATISTICS (op 18, milestone 54 (a network file service a Mac can actually mount)). The record is three little-endian u64s in the shared page (allocation unit, total units, free units), and r0 is its length. That is READDIR's and LISTXATTR's existing shape: a reply word carries one i64, and this answer is three numbers. The record's length is its version, so a later field extends it, and a client written against this one reads its prefix. There is deliberately no version word, because the length already is one.

The verb demands no right, and takes any handle the server minted, file or directory. The handle is the qualification rather than the subject. Demanding READ would leave a write-only grant unable to answer the one question it has. A backing that cannot ask (the baked-in fixture has no volume) answers None, and the protocol layer falls back to NOMINAL_VOLUME_BYTES, stated rather than silent. A read-only share reports zero free whatever the image says. That is the same statement READ_ONLY_VOLUME makes one field over, and is what makes macOS refuse a write client-side.

Paths and directories

Compounds, Apple, flush and the SMB1 probe