mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-12-03 20:41:50 +01:00
Slice 3 of step 5. pdfs_vfs::headless::Headless serves the open-file and namespace services by path, with no kernel and no Drive. Its host queues every create in the real store, as the daemon does offline, and keeps what each close committed in memory. It does itself what the kernel does before calling the FUSE adapter: path resolution one name at a time, refusing a taken name on mkdir, and opening an existing file on create. pdfs_vfs::conformance (test-support) holds an Adapter trait and ten scenarios: a file written, resized, synced, closed and reopened; partial overwrites; reads while open; holes past a grow; create over a file; folder listings; renames that move and replace; the renames and removals POSIX refuses; and an unlinked open file. They run through the headless adapter in pdfs-vfs's unit tests, and through a FUSE mount over the fake Drive, online and offline, in two new simulations. Both adapters see the same outcomes.