notes

The Apple half: the AAPL create context (2026-08-17)

Name: ratified 2026-10-18 (calef, "Approve as a group"). Refused apple-half.

An appendix to notes/smb.md. The code it describes was removed on 2026-08-30; read every present tense as "as of 685900ec". It holds what milestone 55 (Time Machine: SMB3 with Apple's extensions, and mDNS) added for macOS, what the server claimed, and the durability gap the claim exposed and closed.

What macOS looks for

macOS mounts a plain SMB2 share and never offers one as a Time Machine destination. What it looks for is a create context. It hangs an AAPL-tagged blob off the first CREATE of a tree connect, and reads the server's answering context off the response. That is the whole of fruit:aapl = yes on the reference implementation. It is the first line of the working configuration design/roadmap/0055-time-machine/reference.md records.

Two modules, because they are two things:

What this server claims

This is the expensive half, because a claim is something a client acts on:

word set left clear, and why
server capabilities UNIX_BASED READ_DIR_ATTR would promise Apple's extended listing (Finder info and fork sizes inside the dirinfo) and there is no Finder info here; OSX_COPYFILE would promise a server-side copy that arrives as an FSCTL this server refuses; NFS_ACE is off on the reference too (fruit:nfs_aces = no)
volume capabilities FULL_SYNC CASE_SENSITIVE would be untrue in the other direction: the backing filesystem is case-sensitive but this server folds every name to lower case at the wire, so what a client can observe is a share that is not. RESOLVE_ID would promise resolving a file by an on-disk id nothing here mints
model TimeCapsule matching fruit:model = TimeCapsule. Not the _device-info mDNS model, which the reference sets to MacSamba; notes/mdns.md's capture found the working reference running with the two disagreeing, so they are two knobs and not one

FULL_SYNC is fruit:time machine = yes. It is the single bit on the SMB side that makes macOS willing to hold a backup here.

The claim ran ahead of the stack, and as of 2026-08-18 it does not

The gap is worth keeping on the record, rather than quietly deleting. It is the shape of mistake this project is most exposed to: two layers, one of them genuinely covered, and a claim written against the covered one.

What closed it is two new opcodes on two contracts:

contract opcode what it does
fs_proto::blk FLUSH (4) the block server issues VIRTIO_BLK_T_FLUSH and waits for the device's completion. EOPNOTSUPP if the device never offered VIRTIO_BLK_F_FLUSH, so a device with no flush is a loud refusal rather than a quiet success
fs_proto::fs SYNC (19) the file-service verb behind SMB2's FLUSH. Any handle the server minted, dir::WRITE required, refused with EROFS

Both answer with a count of completed device flushes rather than a zero. That is what makes the gate falsifiable: two syncs that return the same number mean the second never reached the device. See fs_proto::fs::SYNC for the full argument, including why the rights are write-side, and why the EOPNOTSUPP travels to the client unmapped.

The honest sentence now: after a successful FLUSH, every write this server acknowledged is on the medium the device calls durable. What "durable" means is still the device's definition. A device that lies about its own flush is outside anything a protocol can check.