The container write layer and WSL mounts: why we refuse to register, and what the message says
Obituary identifies files by durable filesystem identity so recreating a file at the same path never gets buried by an old timer. Neither Docker container overlayfs nor WSL DrvFS mounts can guarantee that—here is how real-engine testing turned a cryptic rename error into a clear Windows handoff, and why checking /mnt/ prefixes would have been wrong.
Real acceptance run across three storage backends: overlayfs refuses mark, bind-mounted ext4 succeeds end-to-end, and WSL DrvFS refuses with a direct handoff to Windows Obituary.On this page
Obituary's core safety guarantee rests on tracking files by durable filesystem identity, never by path strings alone. If a tracked file is deleted and a brand-new file takes its place at the same path, the old countdown must leave the new file untouched.
On Windows NTFS, Obituary checks volume serial plus 128-bit file ID. On Linux and macOS, (device, inode) alone is unsafe because deleted inodes are reused immediately—so Obituary requires a persistent creation timestamp or inode generation.
On 23 November we tested the two special filesystems developers hit most often: Docker container writable layers (overlayfs) and WSL Windows drive mounts (/mnt/c, 9p DrvFS).
On both filesystems, Obituary refuses to register scheduled lifespans, leaves files untouched in place, and tells the user clearly what to do instead.
A container's default writable layer (overlayfs) does not expose a persistent creation stamp or generation.
Inside a real isolated ubuntu:24.04 container (--network none, non-root, zero extra capabilities, /tmp confirmed as overlayfs):
obit mark /tmp/weak 1d exited non-zero (POSIX identity lacks a persistent creation time/generation), leaving weak untouched and both obit list and graveyard empty—registration failure never degrades into movement.
Explicit obit bury weak succeeded only because immediate burial pins an open descriptor, explicitly warning preserve the grave and recover it manually, and obit resurrect 1 was refused—so manual overlayfs burials are never advertised as auto-restorable.
Bind-mounting native ext4 worked completely: binding a WSL native ext4 directory into /work (holding both files and Obituary's data directory) ran mark → bury → resurrect end-to-end with intact contents.
Real acceptance run across three storage backends: overlayfs refuses mark, bind-mounted ext4 succeeds end-to-end, and WSL DrvFS refuses with a direct handoff to Windows Obituary.
WSL Windows mounts: replacing a cryptic EINVAL with a clear handoff
Inside WSL, Windows drives like /mnt/c mount via 9p with option aname=drvfs.
Older Linux builds behaved incoherently here: obit mark failed yet suggested trying obit bury, which then crashed mid-move with retry ... nothing was overwritten (invalid argument) because DrvFS rejects renameat2(RENAME_NOREPLACE).
Linux Obituary now refuses both mark and bury upfront with one actionable line:
text
WSL DrvFS: use the Windows edition of Obituary for this path
Cross-checking two separate ledgers confirmed zero split-brain ownership: Windows Obituary registered the fixture as #2, an isolated Linux mount namespace binding that same folder to /mnt/c rejected both mark and bury while leaving Linux lists empty, and Windows Obituary then buried and resurrected all 7 bytes intact.
Detecting DrvFS by device ID—and fixing an overly broad first attempt
We deliberately avoided checking whether a path starts with /mnt/. DrvFS can be mounted or bind-mounted anywhere, and naive prefix checks both miss relocated mounts and falsely reject ordinary 9p shares.
Instead, Linux file entrypoints inspect the target's (major, minor) device numbers and match them against /proc/self/mountinfo for a 9p mount carrying aname=drvfs.
First-draft trap: blocking valid /tmp commands from a DrvFS repo
Our first version placed the DrvFS check inside generic path resolution. Testing caught an immediate regression: running obit mark /tmp/scratch.log 1d on a native Linux file while your shell's working directory sat inside /mnt/c was falsely rejected during project-context lookup.
Moving the check strictly into Guard verification of managed target paths fixed it cleanly: native targets succeed even from a DrvFS cwd, while DrvFS targets are rejected (TestDrvFSOwnershipAppliesOnlyToManagedPaths and Test9pDeviceOwnership; removing the final guard trips missing Windows handoff: <nil>). Merged at 15:11 on 23 November alongside 10-language doc updates; WSL1, export-enabled overlayfs, and arbitrary third-party volume drivers remain untested.