Skip to content

fix(operations): make file operations safe and fast on NFS, SMB, FUSE, FAT and case-insensitive filesystems - #1615

Merged
l0gicgate merged 402 commits into
mainfrom
fix/1530-filesystem-compat
Oct 17, 2026
Merged

l0gicgate merged 402 commits into
mainfrom
fix/1530-filesystem-compat

Conversation

@ogarza

@ogarza ogarza commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Strata's no-clobber file operations relied on renameat2 flags (RENAME_NOREPLACE, RENAME_EXCHANGE), and native copies went through GIO. Many mounts reject those flags with EINVAL, among them NFS, sshfs, ntfs-3g and other libfuse2 daemons, 9p, ceph and older ZFS.

This PR makes these operations work on such mounts. It never overwrites a destination that appeared meanwhile, and never deletes a source the copy doesn't hold. It delivers steps 1–3 of umbrella #1590, each as its own group of commits.

Step 1: placement, Replace/Merge, rename, Trash

  • One placement ladder for every site: move, staged copy publish, restore, archive extract/compress publish, symlink copy, undo and rename. It tries these in order:

    1. renameat2(NOREPLACE).
    2. For files, linkat. The link counts only once the new name reports the source's identity; the old name is then unlinked after an identity check.
    3. For folders, an exclusive empty placeholder that is renamed over.
    4. On mounts with neither NOREPLACE nor usable hard links (sshfs, vboxsf, rclone, s3fs), an exclusive empty placeholder that is checked and then renamed over.
    5. A copy, only across devices or where no step can place the item.

    EEXIST stays authoritative, and the ladder tells apart the three meanings of EINVAL: flag unsupported, invalid name, and folder into itself.

  • The reserved-name step has a narrow window.

    • The placed item and any existing destination are never at risk. Only a program that overwrites that exact name between the check and the rename loses its write.
    • GLib, and so Nautilus, checks and then renames with no placeholder. So there, even a program that creates the name exclusively in between is overwritten.
  • sshfs and other libfuse daemons without use_ino give each hard link its own inode number. Strata learns this from a probe on its own names and never uses those links to prove a placement.

  • Capabilities are learned per mount and cached by mount ID. The cache is dropped when the mount table changes.

  • Replace and Merge work without Trash or EXCHANGE.

    • The original is moved aside to a hidden name, the new item is published, and the aside copy is then deleted by identity, with rollback on failure.
    • EXCHANGE is used only on in-kernel local filesystems, never FUSE. exfat-fuse reports success for it but simply overwrites, which on main destroyed the original when Trash was unavailable.
    • A same-filesystem move with Replace renames instead of copying.
  • Rename (F2) and undo rename go through the ladder. Case-only renames (foo → Foo) work on vfat, exFAT, SMB, casefold ext4 and exfat-fuse. GVfs locations keep GIO.

  • Trash results are verified. Some FUSE mounts report success without moving anything (GLib #4060).

  • Identity checks compare file type and birth time as well as device and inode, because ext4, NFS, CIFS and ntfs3 reuse inode numbers immediately.

  • Archives:

    • ntfs3 reports zero blocks for small files, and the tar crate used to write zeros for them. TAR now stores members in full.
    • Extraction no longer sets symlink times on FUSE, where sshfs applies them to the link's target.

Step 2: the copy engine

  • One descriptor-based engine replaces GIO wherever both ends are native paths:

    • pastes, Duplicate and Keep Both;
    • cross-filesystem moves;
    • Replace stages and merges;
    • Trash restores.

    It runs on worker threads, opens everything beneath pinned folders, and never replaces an entry. GVfs locations keep GIO.

  • Only complete copies appear.

    • On local POSIX filesystems a file is written to an O_TMPFILE and linked to its name when done.
    • Elsewhere the copy is built in a hidden .strata-copy-* stage, which is safe to delete, and published through the step 1 ladder.
    • Keep Both picks its number when the copy is placed, so a name taken meanwhile gets the next one.
  • Data:

    • Each file is copied with FICLONE, then chunked copy_file_range, then read/write. Network copy_file_range is gated on the kernel releases with the NFS, FUSE and SMB fixes, and NFS requests are capped at 2 MiB.
    • Every native file reports byte progress.
    • Sparse files from local disks keep their holes, except onto FAT, exFAT and NTFS (kernel or FUSE), which would zero-fill each skipped hole in one uncancellable call.
  • Metadata:

    • Order: owner, then xattrs (ACLs last), then mode, then times. user.* xattrs survive on read-only items.
    • Folders keep their mode, times, owner and xattrs. Read-only folders get their exact mode in a last pass.
    • Copies into a setgid folder keep its group.
    • Special bits are dropped when the owner can't be kept.
  • Names:

    • Two source names the destination can't tell apart (Makefile and makefile on FAT, exFAT, SMB or casefold) are saved as makefile (1) and reported. Undoing the move gives the name back.
    • Entries left by lost NFS replies are adopted.
  • Hard links stay linked within one copied item where the destination keeps them.

  • Special files: named pipes are recreated, while sockets and devices are left out and reported.

  • Merges never overwrite.

    • Incoming items are built in a stage inside each merged folder and renamed in.
    • A name taken meanwhile gets the next number and is reported.
    • A stopped merge leaves nothing partial.
  • Moves that copy delete a source entry only if it still matches what was copied:

    • The comparison uses type, size and times, plus inode, change time and link count where those are stable.
    • Hard-linked names the move removes itself are accounted for.
    • On coarse-timestamp mounts (FAT, exFAT, sshfs), a file modified within one tick of being copied is compared by content first.
    • A file written during its copy is copied again, and kept if it changes again.
    • Kept entries are reported and left out of Undo.
  • Durability: nothing that only the copy holds is deleted before the destination is flushed. That covers move sources, Replace originals, merge set-asides, archive originals and restored Trash copies.

    • Each filesystem is flushed the way the lab measured that it reaches the device. The design assumed syncfs; vfat and exFAT also need a folder fsync, and SMB and other FUSE mounts sync each file.
    • ntfs-3g and exfat-fuse, recognised through udev, get one folder sync per batch, which flushes the whole device.
    • Deletions are batched: 256 items, 1 GiB or 5 s.
    • More than eight cross-disk file moves run in parallel.
  • Trash restore copies through the engine where nothing can place the item.

    • Metadata is best-effort.
    • The copy is flushed, then the Trash copy is deleted entry by entry.
    • Anything left behind keeps its .trashinfo and is reported.
    • A restore cancelled mid-copy ends as a cancel, and its partial copy is removed. If the removal can't be proven, the item is reported as failed.
    • Merge undo restores an original only over a path it could check.
  • Undo of a merge or Replace keeps later edits.

    • When a merge or a Replace puts an item over an original that went to the Trash, Strata records what it placed (up to 100,000 entries per operation).
    • Undo deletes the item only if it is unchanged, using the same checks as moves.
    • Otherwise the whole item stays, its original stays in the Trash with its .trashinfo, and the dialog says so.
    • On main, undo permanently deleted whatever was at that path, edits included.
    • Where the Trash is unavailable, undo also deleted the items a merge created, silently. Now it deletes only those it recorded and finds unchanged, and reports the rest. Where the Trash works, they still go to the Trash.
  • Completion report: one event carries renamed, left-out and left-behind items.

    • One short renamed line shows as a notice; more show in an information dialog.
    • Anything left out or left behind shows a warning.
    • A cancelled or failed transfer, and a restore or merge undo that completes with errors, shows one dialog: its outcome, then the report.
    • In a cancel's summary, an item the cancel cut off and rolled back counts as not attempted, not failed. This applies to local transfers, Trash deletes, restores and merge undos.
  • Responsiveness:

    • Paste, restore and delete planning run off the main thread.
    • Folder monitors ignore the phantom events of unnamed temporary files, and query each linked-in file once.
  • Docs and lab:

    • docs/filesystem-compatibility.md gains a "Copying" section and the residual limits; the lab's flush and claim measurements are in a comment on this PR.
    • scripts/fslab now counts device cache flushes per mount.
    • The full unit suite was rerun on all 14 lab mounts. Every failure left is a test portability issue or a fixture limit of the mount.
  • Speed on the lab (2,000 × 1 KiB, debug build): vfat with flush, 26 s against GIO's 208 s; sshfs, 2–12 s against about 100 s; the rest on par. On exfat-fuse and ntfs-3g, a 300-file move went from about 300 device flushes to 2.

Decisions taken with the owner during step 2:

  • batched flushes with parallel moves;
  • hard links kept within one item;
  • pipes recreated, everything else skipped and reported;
  • setgid group kept;
  • one flush per batch on ntfs-3g and exfat-fuse;
  • content recheck of recently modified files on coarse-timestamp mounts;
  • SMB opens refused during the client's deferred close are retried, for at most 10 s;
  • one dialog per outcome, never a stacked report;
  • items a cancel rolled back count as not attempted;
  • a cancel never reports the transfer as finished, as decided in feat(ui): flush removable drives before unmount and copy success #1193.

Decided by the lead along the way:

  • holes kept as with cp --sparse=auto;
  • a name taken during a merge is numbered and reported;
  • undo gives alias-numbered names back;
  • leftovers are not auto-deleted (step 8).

Step 3: mount profile and names

  • One name profile per mount, read off the main thread from the mount behind the destination, through symlinks and nested mounts: mountinfo, udev's format for fuseblk, and statfs's name length. It is cached with the mount's capabilities and kept for a whole operation. GVfs locations, and their folders under /run/user/$UID/gvfs, get rules by address.
  • Names brought from another filesystem are fixed before anything is created, and reported:
    • FAT, exFAT, NTFS, SMB without POSIX extensions and MTP: < > : " \ | ? * and control characters become _, trailing dots and spaces are dropped, malformed UTF-8 becomes _.
    • CON becomes CON_ wherever Windows rules apply. aux.c and con.txt keep their names on FAT, exFAT and ntfs3 (the Windows 11 rule), and get _ on ntfs-3g, ntfs3 with windows_names and SMB without POSIX.
    • Length counts the destination's unit: bytes on POSIX, NFS, SMB and SFTP; UTF-16 units on FAT, exFAT and NTFS; Samba folders 213 bytes, MTP 254 units. A cut keeps the extension and whole grapheme clusters, and every number Strata adds fits.
    • A name that needs no change keeps it. Duplicates, restores and moves within one filesystem keep every name.
  • Names within one paste: top-level items from two folders that share a name are numbered before copying on every destination, and reported as taken. FAT, exFAT and SMB without POSIX extensions number case pairs before copying; casefolded folders look a later spelling up once first. An item that meets a duplicate's original is asked about as before, and planned items are copied before duplicates and resolved conflicts, so every item lands.
  • Undo gives fixed names back, deepest first, also between native and GVfs locations; redo fixes them again.
  • A name the mount still refuses is retried under stricter Windows rules, alone and then together, and the first accepted is used and reported. Only mounts whose type hides their rules (sshfs and other FUSE daemons, unidentified fuseblk, unknown types) remember what worked. If none works, the error reads "The name isn't valid at this location" or "The name is too long", naming the item.
  • Symbolic links the destination can't hold are left out and reported, and the paste goes on: on FAT and exFAT without asking, on SMB without POSIX extensions after its first refusal, on NTFS per refused target, and, wherever names must be UTF-8, for a target that isn't. A move keeps those links at the source, and Undo leaves those items out, naming them.
  • Archive extraction fixes member names and the archive's folder name, keeps members whose names became one apart (10_00 (2)/), retries refused names, leaves out links and hard links to them, reports, and finishes.
  • The conflict prompt sees the name the paste will use, worked out off the main thread; the paste's UI-thread conflict check is gone.
    • "“a:b” will be saved as “a_b” in this location." opens the prompt where that name is taken, instead of failing.
    • Replace, Merge and Keep Both act on that name, a merge prompt says fixed names overwrite, and Keep Both is offered for moves.
    • A slow destination shows "Preparing items…" with Cancel, in a copy's docked row or a move's dialog. Closing the view dismisses it, and the transfer copies nothing.
  • Typed names (rename, new file or folder, archive name) that the location would store as another are refused before anything changes, naming the characters (by code point where invisible), the trailing space or period, the reserved name or the length. 10xer prompts stay open.
  • Renaming a GVfs address no backend serves (smb:// without GVfs) fails with the backend message, where GLib ended the process (no UI route to it was found).
  • Moves that copy check more:
    • A file whose copy's reads ended away from its size is copied again.
    • Without multigrain timestamps (Linux before 6.13, or other than ext4, XFS, btrfs and tmpfs), files modified within 100 ms of the read are compared by content.
    • The copy must keep the size and time it was left with, so a file put in its place, even on its freed inode within one tick (ntfs3), keeps the source.
    • Where inode numbers aren't stable (FAT, FUSE, vboxsf, noserverino), type, birth time, size and time identify the copy. Kernel exFAT moves a folder's birth time at each rename into it, so there folders count by type.
    • Moves from SMB force each stat they record, so moving or undoing right after a paste or a read there no longer keeps unchanged entries.
    • A selected link that sshfs makes again counts as its copy if it points where the original did.
  • ntfs-3g long names: renaming over an entry, ntfs-3g cuts a name of 237 UTF-16 units or more and leaves a stray. Strata never does that there or on an unidentified fuseblk: files are linked, folders renamed once the name is found free, so nothing is copied.
  • Completion report: new sections for names not allowed, names too long, links left out, and names Undo couldn't give back.
  • CI: the Rust test container gets a tmpfs /tmp, so copy tests get O_TMPFILE; tests that force the named stage cover the fallback. Its kernel is 6.6, so the seam links unnamed files as Linux 6.10 does on every host, and rows that replace a fresh copy wait for a later birth tick.
  • Review: a collaborator's review was merged in: operations split into subsystems, and published identities kept through moves and undo.
  • Docs and lab:
    • docs/filesystem-compatibility.md gains a "Names" section; the lab's name measurements are in a comment on this PR.
    • A corpus of lab names, 258–768-byte names, links and a tar archive was copied, moved, undone and extracted on all 14 lab mounts plus ntfs3 with windows_names: every name landed as planned, servers listed what the client sent, and exfat-fuse got no malformed, forbidden or overlong name. Its gaps are fixed above and were rechecked there.
    • local_operations:: was rerun on all 14 mounts. Every failure left is a fixture or preset the mount can't hold, or a known limit.

Decisions taken with the owner during step 3:

  • device names: the Windows 11 rule where they are stored, the full rule where refused or mangled;
  • a fixed name in a merge overwrites like any same name, and the prompt says so;
  • typed names are refused with the reason, never fixed;
  • GVfs rules by address, /run/user/…/gvfs included;
  • archives fix names, keep folders apart, leave out links, retry refused names, report and finish;
  • Undo leaves out items whose links stayed behind, naming them;
  • a merged folder re-reads name rules only on another device;
  • the smb:// rename crash is fixed here;
  • same-tick checks: reads that end away from the size, and content checks where timestamps aren't multigrain;
  • copies on unstable inode numbers accepted by type, birth time, size and time; kernel exFAT folders by type;
  • every stat a move records from SMB forced; SMB without POSIX extensions planned as case-folding;
  • ntfs-3g folders of 237 units or more renamed once their name is found free;
  • identical top-level names numbered everywhere; an item meeting a duplicate's original prompts as before;
  • non-UTF-8 link targets left out where names must be UTF-8;
  • selected links moved onto sshfs accepted by target;
  • a tmpfs /tmp for CI's test container.

Decided by the lead along the way:

  • malformed UTF-8 becomes _, not U+FFFD; CON_, not __CON;
  • NTFS case pairs are not numbered;
  • only mounts whose rules can't be read learn, and only what a refused name needed;
  • Keep Both is offered for moves; links left out make it "Completed with errors";
  • extraction keeps name (2); a broken link at the target counts as a conflict;
  • an unidentified fuseblk mount gets the ntfs-3g long-name rule;
  • a later spelling is looked up before copying, never copied twice;
  • "Preparing items…" instead of "0/0" in a copy's docked row;
  • planned items go before duplicates and resolved conflicts; a prompted name keeps the prompt's reason.

Steps 4–8 continue in the follow-up PR #1729, tracked in #1590.

Known limits:

  • SMB:
    • On SMB2/3, NOREPLACE is enforced only on the client.
    • After this machine writes a file on a share, the client refuses to open another hard-linked name of it until its deferred close ends (closetimeo, 1 s by default). Strata retries for that plus 0.5 s, at most 10 s; a writer that keeps the file open still fails the copy.
    • A move from a share takes one more round trip per entry, and a share set to compare case still gets (1) for case pairs.
  • Lost replies (EIO, ETIMEDOUT) to the rename over a placeholder: on sshfs and vboxsf, where an inode number can't tell the placeholder from the moved item, the empty placeholder can remain and the item is reported as unconfirmed rather than guessed; on NFS and other mounts with stable inode numbers, a placeholder still in place proves the rename failed, so it is removed and the error reported.
  • SFTP without [email protected]: nothing can be renamed over a placeholder. Moves and copies fall back to copying, as before; file renames, archive publication and setting a file aside are refused.
  • Identity and timestamps:
    • Mounts without birth time (NFSv3, ntfs-3g, exfat-fuse, sshfs) can't tell a recreated item of the same type, size and times from the original. On kernel exFAT and vfat, neither can a move tell a copy replaced so within its 10 ms birth tick.
    • A server or FUSE daemon clock more than 100 ms behind ours (2 s on sshfs) can hide a same-size rewrite.
    • A move from kernel exFAT keeps a whole source folder that another program renamed something into. Onto exFAT, a merged folder renamed away and replaced passes; its copies stay in the renamed folder.
  • Waiting out the tick: a move of a just-saved file takes up to 2 s longer on FAT and exFAT (3 s on sshfs), and up to 100 ms longer elsewhere without multigrain timestamps.
  • ntfs-3g long folder names: an empty folder made at the name between the check and the rename is replaced, and ntfs-3g leaves a cut entry beside it.
  • Hard links are kept within one copied item and one merged folder, never from plain SMB shares or sshfs.
  • GVfs destinations get no flush and no content check, rules by address only, and no retry of a refused name.
  • Names:
    • Only names are checked, not paths: SMB and sshfs refuse paths of about 4 KB, and Windows' MAX_PATH is not predicted.
    • Inside copied folders, only FAT, exFAT and SMB without POSIX extensions plan case aliases; elsewhere the destination's "exists" decides. NTFS keeps Makefile and makefile apart.
    • Windows 10 cannot open aux.c or con.txt, which FAT, exFAT and ntfs3 keep.
    • Unsupported: vfat with a legacy iocharset and without utf8, exFAT or cifs with a non-UTF-8 code page, and msdos. udisks never mounts these.
    • Link targets are never rewritten, so a link to a renamed entry dangles. A link is judged by its first refusal.
  • Archives: the folder named after the archive is not retried under stricter rules; where a mount with unknown rules refuses it, the output stays in the hidden staging folder. A member path component such as c:notes is refused as a drive prefix.
  • Leftovers: a .strata-copy-* stage left by a crash or an unplug stays until it is deleted (step 8).
  • Not tested on real mounts:
    • The batch limits were measured on loop devices in RAM, so real USB flush latency is unmeasured.
    • Restoring from Trash still matches by device and inode (step 6).
    • vboxsf, rclone, s3fs, ZFS, 9p, ceph and libfuse2 builds of exfat-fuse were never tried. Their behaviour is taken from their sources and tested through the seam.
    • Name rules on real smb:// and mtp://, a Windows SFTP server's refusals, and extraction into a 237-unit folder name on ntfs-3g.
  • Not reproduced: in one of four NFSv4.2 lab runs, a merge undo kept an untouched placed file.

Edge cases by filesystem

Every filesystem edge case this PR handles, against main at the merge base (e7e43f2a). Rows under Any filesystem apply everywhere; the groups below list only what differs.

Any filesystem
Edge case Before (main) After (this PR)
Move within one filesystem where RENAME_NOREPLACE is rejected (#1530) Copied to a hidden stage, copied again to its name, then the source deleted: data written twice Renamed, never copied: a file by hard link, its old name removed once the link proves it; a folder over an empty placeholder. Mounts without usable links: see sshfs
EINVAL from a rename Read as "copy instead" Told apart: an invalid name is reported, a folder into itself refused, a missing flag handled as above
Move across filesystems Staged copy (copied twice where NOREPLACE is missing), then the source deleted One copy (a second pass only where nothing can place it), then each source entry deleted once the copy is flushed
Source changed or added to during that move Only the top item checked; everything inside deleted An entry is deleted only if it still matches what was copied (type, size, times; inode, change time, link count where stable). The rest stays, is reported, and keeps the item out of Undo
Same-size rewrite that leaves the modification time as it was Deleted (nothing was checked) Caught by the change time; contents compared where times are coarse (FAT, exFAT, sshfs, HFS, whole seconds) and for files modified within 100 ms of the read except on ext4, XFS, btrfs, tmpfs from Linux 6.13
File written while it is moved Deleted after copying whatever was read Copied once more; if it changes again it stays, and a selected file fails "changed while it was being copied"
Copy moved away before its source is deleted Source deleted Source kept and reported, also for a copy rewritten, or replaced by a file reusing its inode within one tick (ntfs3). Where inodes are renumbered (FAT, exFAT, FUSE, vboxsf, noserverino), type, birth time, size and time identify it (exFAT folders: type alone)
Source entry that can't be deleted (read-only folder) Move failed halfway: "Could not delete …: Permission denied" Move completes; the entry stays and is reported with the error
Flush before deleting what only the copy holds (move sources, replaced originals, merge set-asides, Trash copies) Removable drives only; an exchanged original or a restored Trash copy never Always (except GVfs destinations), the way each filesystem reaches its device (see below); a failed flush deletes nothing
Moving many files across filesystems One at a time, each source deleted at once Up to 8 at a time (1 on spinning disks); deletions batched per destination (256 items, 1 GiB or 5 s) after one flush. Cancel finishes the batch's deletions
Copy seen under its final name while written Second copies (no NOREPLACE) and merges wrote at real names Only complete copies appear: an unnamed O_TMPFILE linked when done on local POSIX filesystems, otherwise a hidden .strata-copy-* stage
Cancelled or failed copy A second copy left its truncated file at the final name; NFS kept the stage Nothing partial at a real name; files are closed before removal, so NFS leaves no stage unless another program holds a file in it open
Copy cut off by a crash or an unplugged drive A .strata-replacement-* stage, or a half-written file under its final name A file on a local POSIX disk leaves nothing (unnamed until complete); anything else leaves a .strata-copy-* stage, documented as safe to delete
Keep Both and Duplicate Number probed on the UI thread; a name taken meanwhile failed the copy Number chosen when the copy is placed; a name taken meanwhile gets the next one
Keep Both on a move Not offered Offered; Undo moves the item back
Conflict with the name a paste will use (a:b onto a stick holding a_b) No prompt; the paste failed: "already exists" The prompt says it will be saved as a_b; Replace, Merge and Keep Both act on that name
Replace with Trash Stage copied (twice without NOREPLACE), even for a move within one filesystem One copy; a replacing move within one filesystem renames the source. A Trash that moved nothing falls back
Replace without Trash RENAME_EXCHANGE, the original deleted at once; elsewhere failed after the full copy Exchange only on in-kernel local filesystems, never FUSE; elsewhere the original is set aside and put back on failure. It is deleted only after the copy is flushed; refused before copying if nothing is safe
Merge Overwritten files trashed, then GIO OVERWRITE into the live folder Incoming items built in a hidden stage per merged folder, then renamed in without replacing
Merge without Trash Refused Originals set aside in a hidden folder, put back on failure, removed once the merge is flushed. A name taken since the check ends the merge with the aside folder kept and named
Undo of a merge or Replace after the item was edited The edited item permanently deleted and the original restored The item kept whole; its original left in the Trash and reported
Merge undo or restore that ends with errors Restored and kept items could vanish from the view until a reload Only what was removed leaves the view; open folders without a monitor reload when a restore ends
Open folders without a monitor after an operation ends Skipped after a cancel, and after a delete or restore, whenever some watched folder had rescanned; reloaded unaffected parent folders Each affected unwatched folder reloads once after any ending (completed, failed, cancelled); watched folders are left to their monitor
Merge undo where the Trash is unavailable Items the merge created deleted permanently, edits included, without asking Deleted only if recorded and unchanged; otherwise kept and reported
Name taken during a merge Overwritten, no undo; a stopped merge left partial files Saved under the next number and reported; a stopped merge leaves nothing partial and reports only what it placed
Rename (F2) Check, then plain rename(): an item created in between is replaced Never replaces: native items go through the same steps as moves
Typed names the location can't store (rename, new file or folder, archive name) Raw system error, or stored otherwise (vfat saved x. as x; ntfs3 kept a:b) Refused before anything changes, naming what the location can't store
Case-only rename on case-insensitive folders Refused: "already exists" Done in two steps through a hidden name, with rollback
Undo rename A move: two full copies plus a delete where NOREPLACE is missing A rename that never copies; refused where nothing can place it
Trash reports success without moving anything (GLib #4060) Shown as trashed, Undo recorded, .trashinfo removed Checked: an item still in place fails like an unsupported Trash, with no Undo
Restore from Trash without rename flags Files hard-linked; folders copied with strict metadata Placed without copying; copied only where nothing can place it
Restore copy Strict metadata failed restores (user.* on 0444); named pipes refused; Trash copy deleted unflushed Best-effort metadata, pipes recreated; flushed, then the Trash copy deleted entry by entry. What changed or can't be copied stays in Trash with its .trashinfo, reported. A cancel mid-copy ends as a cancel with nothing partial left
Archive extraction and compression publish NOREPLACE or a hard link per file, refused elsewhere; compression published on the UI thread Through the same steps, off the UI thread; Replace without Trash sets aside or exchanges; the original is deleted after the archive is flushed
Archive members whose names or links the destination can't hold Extraction failed Names fixed (or retried under stricter rules), folders that became one kept apart, links left out; reported; the extraction finishes
Copy metadata GIO, by path after close: chown, chmod, times, xattrs By descriptor: owner, xattrs (ACLs last), mode, times; only I/O, stale-handle and connection errors fail
user.* xattrs on read-only items Lost Kept
Copy of another user's setuid file Stayed setuid, owned by the copier Setuid and setgid dropped when the owner can't be kept
Copy into a setgid folder Files took the source's group Everything keeps the folder's group; folders keep setgid
Folder mode, times, owner, xattrs Lost (0700 became 0755) Kept; read-only folders get their mode in a last pass, with no descriptor held per folder
Symlink times in a copy Lost Kept, except on FUSE
Hard links inside a copied folder Split into separate files Kept within the copied item where the destination keeps links
Named pipes inside a copied folder Whole copy aborted Recreated; left out and reported where the destination refuses them
Sockets and device files inside a copied folder Whole copy aborted Left out and reported; a move leaves them at the source
Selected named pipe "Cannot copy …: it is not a regular file…" Recreated where the destination allows it
Symlink in a folder copied where symlinks are refused Copy aborted, naming the hidden stage Left out and reported; the copy goes on. A move keeps the link and its folders at the source; Undo leaves that item out, naming it
Selected symlink onto a destination without links Paste failed Left out and reported; the paste goes on
Sparse files Holes filled (except reflinks) Holes kept from ext2/3/4, XFS, btrfs, tmpfs, f2fs to anything but FAT, exFAT, ntfs3
Case aliases inside a copy (Makefile, makefile) The later name overwrote the earlier; a move deleted both sources Later name in byte order saved as makefile (1) and reported; undoing a move gives the name back
Top-level items sharing a name: from two folders (a/notes.txt, b/notes.txt), or case pairs on SMB (nocase or not) and casefolded ext4 The second failed: "already exists"; the paste stopped. FAT numbered it silently The later one saved as notes (1).txt or makefile (1) before copying and reported; copied into the folder of one, the other is asked about; three or more all land
Names the destination can't store (\, :) Copy failed, or stored in a form other systems can't use (FAT: replaced silently) Fixed before anything is created (_, trailing dots and spaces dropped, CON_, malformed UTF-8 as _) and reported; undoing a move gives them back
Names too long for the destination (86 CJK characters from FAT or NTFS onto ext4) Copy failed: "The name is too long" Cut in the destination's unit, keeping the extension and whole characters; reported
Keep Both, alias and archive numbers on a long name Failed: "The name is too long" The stem is cut to fit (n)
Name refused by a mount whose rules can't be read (sshfs, other FUSE daemons) Copy failed with the raw system error (sshfs: "…: Bad message", also past 255 bytes) Cut to its limit, or retried under stricter Windows rules that the mount then keeps; reported
Destination reached through a symlink (~/stick into /run/media/…) The link's own filesystem decided: FAT names and the 4 GiB check missed The mount behind it decides
Lost replies (EIO, ETIMEDOUT after the step happened) Shown as failures, unverified Resolved by identity, otherwise reported unconfirmed with both names kept; a copy adopts its own entries
Item deleted and recreated with a reused inode number Passed as the original Told apart by type and, where reported, birth time
Data path GIO: clone, one whole-file copy_file_range, splice, read/write Clone, then chunked copy_file_range (gated per network filesystem and kernel), then read/write
Progress Bulk copies: completion only; second copies and restores: none. "Writing to device…" only for removable drives Bytes for every native file, bulk path included; "Writing to device…" during a final flush on internal disks too (not SMB, whose files sync as written)
Completion report None Numbered, fixed and shortened names, left-out special files and links, entries left behind, names Undo couldn't give back: a notice, dialog or warning; one dialog if the operation stopped or had errors
Item cut off by Cancel Counted as failed Counted as not attempted when it was rolled back (local transfers, Trash deletes, restores, merge undos); still failed where something may remain (merges, permanent deletes, remote locations)
Folder monitors during copies Merges and second copies wrote in the visible folder Copies appear in one step; phantom events of unnamed files are ignored, and each linked-in file is queried once
Disk calls on the UI thread (paste, restore, delete, compress) Conflict check, Keep Both probes, stage creation, worker counts, restore and delete checks, archive publish All moved to workers except the compress dialog's name check and bookmark cleanup after a delete (step 5)
NFS (v3 and v4.x)
Edge case Before (main) After (this PR)
Move within one share (#1530) Copied twice, then the source deleted Renamed: files linked, folders over a placeholder
Copy into a share Written twice (stage, then a second copy) Written once into a hidden stage, then linked or renamed into place
Replace or Merge without Trash (root-owned export) Replace failed after the full copy; Merge refused Original set aside, then removed after the flush
Undo rename, restore Undo copied twice; restore copied folders Placed, never copied
Archive extraction One hard link per extracted file Folder placed in one rename over a placeholder
Lost CREATE, MKDIR, LINK replies Failures The copy adopts its own fresh entry
Item recreated with a reused inode number Passed as the original v4: told apart by birth time where the server reports one; v3 reports none (documented limit)
Copied file times under a v4 write delegation Could become the copy time Set again after close
Copy within a v4.2 share One whole-file server-side COPY: about 3 s for any file over 2 MiB copy_file_range in chunks of at most 2 MiB, from Linux 5.9
Flush before deleting a moved source None syncfs (commits to the server)
Sparse files from an NFS source Holes filled Unchanged on purpose: copied in full (server holes can't be trusted)
Extracted archive member times (v4.2) Set to now Unchanged
SMB/cifs

Reserved-name, Windows-character and symlink rows: shares without POSIX extensions.

Edge case Before (main) After (this PR)
Replace or Merge without Trash Replace failed after the full copy (no EXCHANGE); Merge refused Original set aside, then removed after the copy is flushed
Case aliases inside a copy Later name overwrote the earlier; a move deleted both Numbered and reported
Case-only rename Refused: "already exists" Works; the client's cached lookup is revalidated first
Copy within a share Clone and copy_file_range on any kernel Clone and copy_file_range only on kernels with the client's 2023 fixes (6.7, 6.6.7, 6.1.73)
Flush before deleting a moved source None fdatasync of each written file (an SMB FLUSH)
Hard-linked files read from a share Each name copied separately One name of a file opened at a time (the client refuses concurrent opens); links kept where the share reports them
Another name of a file this machine just wrote Open refused for about 1 s (closetimeo); the copy failed Retried for closetimeo plus 0.5 s, at most 10 s
noserverino, or server inode numbers turned off Device and inode compared (effect not measured) Deletion compares type and birth time instead
Windows-reserved names Saved, but listed under 8.3 aliases (CON as CSHOFG~F) CON and aux.c saved as CON_ and aux_.c, reported
: and other Windows characters, trailing dots and spaces (mapposix) Stored as private-use characters that other clients show Saved as _ or dropped, and reported
Symlinks; characters above U+FFFF on nocase shares Copy failed Links left out after the first refusal; such characters become _; reported
Folder names over 213 bytes Inside a copied folder, failed past about 217 bytes: "No such file or folder"; a selected folder kept its name Cut to 213 bytes and reported
Malformed UTF-8 in names and link targets (POSIX extensions) Stored with ? for each bad byte, unreported Names saved with _, such links left out; reported
Undo of a move, merge or Replace onto a share right after it No edit check (a move back checked its top item only) Change times fetched past the client's cache, also after reads here: untouched entries undone, edited ones kept and reported
Archive metadata (read-only members; cleanup after failure) Extraction failed Unchanged
sshfs and other libfuse daemons without `use_ino`
Edge case Before (main) After (this PR)
Move within one mount Copied twice, then the source deleted Renamed over an empty placeholder checked just before (files) or to a name just found free (folders); copied only where the server lacks posix-rename
Hard links as proof of a placement Restore and archives linked unchecked Never trusted: each link reports its own inode; a probe learns this
Replace or Merge without Trash Replace failed after the full copy; Merge refused Original set aside through the same steps
Copies, undo rename, restore, archives Copies written twice; undo copied twice; restore linked files unchecked; archives by hard link Placed through the same steps, never copied again
Extracted symlink times Applied to the target; a dangling link failed the extraction Not set
Same-size rewrite of a file the move just read (server-side too) Deleted Files modified within 3 s of the read (1 s tick, plus 2 s for a server clock behind ours) are compared by content first; a mismatch stays and is reported
Flush before deleting a moved source None fdatasync of each written file, then fsync of the folder
exfat-fuse
Edge case Before (main) After (this PR)
Replace without Trash EXCHANGE silently overwrote: the original destroyed Never exchanges on FUSE: the original is set aside
Case aliases inside a copy Later name overwrote the earlier Numbered and reported
Case-only rename Refused: "already exists" Works, although each spelling reports its own inode
libfuse2 builds (no NOREPLACE, no links) Moves copied twice; archives failed Files placed through the reserved-name step; archives work
Flush before deleting Removable syncfs, which flushed nothing Recognised by udev: syncfs plus one folder fsync per batch; otherwise fdatasync per file plus the folder
Same-size rewrite within a time tick Deleted (no check at all) Files modified within 2 s of the read are compared by content first
: and other Windows characters; malformed UTF-8 "No such file or folder"; an overlong / or a surrogate broke the listing or crashed the daemon Fixed before the daemon sees them, and reported
Symlinks Copy failed (ENOSYS) Left out and reported
ntfs-3g
Edge case Before (main) After (this PR)
Move within one volume Copied twice, then the source deleted Renamed: files linked, folders over a placeholder
Move or copy onto it from another disk (#1530) Staged copy, then a second full copy One copy, linked or renamed into place
Replace or Merge without Trash Replace failed after the full copy; Merge refused Original set aside
Restore Folders copied; Trash copy deleted unflushed Placed without copying
Flush before deleting Removable syncfs, which flushed nothing Recognised by udev: syncfs plus one folder fsync per batch; otherwise per file
Windows characters, trailing dots and spaces, device names (udisks sets windows_names) Copy failed: "…: Invalid argument" Fixed (con.txt saved as con_.txt) and reported
Folder named with 237 UTF-16 units or more (or a fuseblk mount udev can't name) A move within copied it twice; F2 and extraction worked Renamed (moves, F2, extraction) once the name is found free, not over a placeholder (ntfs-3g would cut the name); an empty folder made there in that instant is replaced
ntfs3
Edge case Before (main) After (this PR)
TAR and TAR.GZ of small files Stored as zeros: silent data loss Stored in full
Replace without Trash Failed after the full copy (no EXCHANGE) Original set aside
Restore by copying (rarely needed: restores rename) Failed on ntfs3's $LX* attributes $LX* never copied; restore copies pass
Item recreated with a reused inode number Passed as the original Told apart by birth time
Flush before deleting a moved source Removable drives only syncfs, which flushes the device
Windows characters and device names Stored, though Windows can't open them; with windows_names, copy failed Saved with _; CON as CON_, aux.c kept; with windows_names, every device name fixed
Malformed or overlong link targets (malformed on ntfs-3g too) Copy failed That link left out and reported
vfat
Edge case Before (main) After (this PR)
Replace without Trash EXCHANGE, the original deleted at once EXCHANGE; the original deleted only after the flush
Case aliases, including 8.3 short names Numbered silently by an uppercase key Numbered before copying by folded names when brought from another filesystem, else on the drive's own "exists"; reported; undo gives names back
FAT-invalid characters Replaced silently, even renumbering a sibling that already had the name; malformed UTF-8 failed Fixed by the Windows rules (malformed UTF-8 and CON too), reported, given back by undo; names needing no change kept
Symlinks Copy failed Left out without asking, and reported
Case-only rename Refused: "already exists" Works
Flush before deleting syncfs, which flushed nothing syncfs then a folder fsync, which flushes the drive
Same-size rewrite within the 2 s tick (no change time) Deleted (no check at all) Files modified within 2 s of the read are compared by content first; moving a just-saved file takes up to 2 s longer
Inode numbers reassigned after eviction Compared (effect not measured) Deletion compares type and birth time instead
exFAT (kernel)
Edge case Before (main) After (this PR)
Replace without Trash Failed after the full copy (no EXCHANGE) Original set aside
Case aliases, case-only rename As vfat: numbered silently; renames refused As vfat: numbered and reported; renames work
Windows characters, symlinks As vfat As vfat
Flush before deleting syncfs, which flushed nothing syncfs then a folder fsync
Same-size rewrite within a tick Deleted (no check at all) Compared by content within FAT's 2 s window. A source folder that had an entry renamed into or within it stays whole (exFAT moves its birth time)
ext4
Edge case Before (main) After (this PR)
New file copy Hidden stage, then GIO's own temp file and an fsync per top-level file Unnamed O_TMPFILE, linked when complete: a crash leaves nothing; no fsync for plain copies
Replace without Trash EXCHANGE, the original deleted at once EXCHANGE; the original deleted only after the flush
Item recreated with a reused inode number Passed as the original Told apart by birth time
Sparse files Holes filled Holes kept
Flush before deleting a moved source (internal disk) None syncfs
Casefolded ext4
Edge case Before (main) After (this PR)
Case aliases inside a copy Later name overwrote the earlier; a move deleted both sources Numbered and reported (casefold flag read per folder)
Case-only rename Refused: "already exists" Works
btrfs and XFS
Edge case Before (main) After (this PR)
Move across btrfs subvolumes or mounts Copy (reflinked) plus delete; folder metadata lost Reflinked copy keeping folder metadata; sources deleted entry by entry after syncfs
Replace or Merge on subvol= mounts (no Trash) Replace exchanged and deleted at once; Merge refused Exchange with the delete after the flush; Merge sets aside
Sparse files across filesystems Holes filled Holes kept
tmpfs
Edge case Before (main) After (this PR)
Replace (no Trash) EXCHANGE, the original deleted at once EXCHANGE; the original deleted after the flush
Merge (no Trash) Refused when a file would be overwritten Originals set aside, removed after success
Sparse files Holes filled Holes kept
ZFS
Edge case Before (main) After (this PR)
OpenZFS 2.1 and earlier: move within a dataset Copied twice, then the source deleted Renamed: files linked, folders over a placeholder
Replace without Trash 2.2+: exchanged and deleted at once; 2.1: failed after the copy 2.2+: exchanged, deleted after the flush; 2.1: set aside
Case-insensitive datasets Aliases overwritten; case-only renames refused Aliases numbered and reported; case-only renames work
Sparse files from ZFS Holes filled Unchanged on purpose (some releases report holes over unsynced data)
overlayfs
Edge case Before (main) After (this PR)
Replace and Merge (no Trash) Replace exchanged and deleted at once; Merge refused Original set aside instead (no exchange on overlayfs), deleted after the flush; Merge sets aside
Moving a lower-layer folder (no redirect_dir) Copy plus delete; folder metadata lost Copy keeping folder metadata; sources deleted entry by entry after syncfs
vboxsf, rclone, s3fs
Edge case Before (main) After (this PR)
Move within one share Copied twice, then the source deleted Renamed over a checked placeholder (files; vboxsf folders too)
Copies, Replace without Trash, archives Copies written twice; the others failed Placed through the same step
Restore Copied with strict metadata Placed without copying
Rename (F2) Only GIO's check protected the target Renamed over an exclusively created, checked placeholder
Inode numbers, which vboxsf keeps for a name through renames Compared, as everywhere Never trusted: a moved copy is known by type, birth time, size and time, and a lost reply to the rename over a placeholder is reported unconfirmed
Flush before deleting a moved source None rclone, s3fs: fdatasync per file plus the folder; vboxsf: per file plus syncfs
9p, ceph
Edge case Before (main) After (this PR)
Move within one mount Copied twice, then the source deleted Renamed: files linked, folders over a placeholder
Replace without Trash Failed after the full copy Original set aside
Restore Folders copied Placed without copying
Flush before deleting a moved source None fdatasync per file plus syncfs
GVfs locations (`smb://`, `sftp://`, `mtp://`)
Edge case Before (main) After (this PR)
Native item moved there GIO moved files unchecked; folders: top item checked only Recorded before GIO copies it; each source entry deleted only if unchanged. No flush or content check; a torn copy stays there
GVfs item moved to SMB or FUSE Copy not synced before the source was deleted Files synced one by one before the source is deleted
Keep Both Exists probes block the UI thread Probed without blocking the UI thread; retries on "exists"
Paste conflict check Synchronous on the UI thread Off the UI thread; a slow location shows "Preparing items…" with Cancel
Names onto smb:// and mtp:// Sent as they were: GIO failed on refused names; MTP sent an empty name past 254 units Windows rules by address (MTP: 254 units), reported; undo gives them back
Symlinks onto smb:// and mtp:// Copy failed Left out after the first refusal in each item; reported
Item moved from a GVfs location GIO copies it, then deletes it unchecked Unchanged

Visual evidence

Pending upload: none of these captures, taken on a private headless display, is attached yet.

Step 2 (end of step 2; step 1 changed no layout):

  1. Before (end of step 1): copying Makefile and makefile onto a case-insensitive folder fails with "An item with that name already exists".
    After: a notice says the destination can't tell these names apart and makefile was saved as makefile (1).
  2. After: information dialog "11 items were saved under new names", with 8 lines and "… and 3 more items".
  3. After: information dialog "Some names changed during the transfer" (retitled in step 3), with an alias section and a name taken during a merge.
  4. Before: copying a folder with a named pipe and sockets fails.
    After: the pipe is recreated, and "Completed with errors" lists the two sockets as left out.
  5. Before: moving that folder to another disk is refused.
    After: "3 items were left in their original folders". The reasons are a log written during the move, a socket, and a file in a read-only folder.
  6. After: one dialog after a cancelled move and after a failed copy, with the outcome first and then the report. The cut-off file counts as not attempted.
  7. After: "Writing to device…" during the final flush of a move to an internal disk.
  8. After: one "Completed with errors" dialog for a restore that failed one item and left parts of another in the Trash.
  9. After: 1, 3 and 5 in a light Omarchy theme.

Step 3 (After only). The "stick" is a RAM folder that a capture-only patch, not in this PR, reads as vfat, so it shows Strata's own planning:

  1. A copy onto the stick: "The destination doesn’t allow these names", six names with their new ones.
  2. The same with Agenda.md beside agenda.md: "Names changed for different reasons", adding "The destination can’t tell these names apart".
  3. Long Japanese names copied to a home folder: "These names were too long for the destination", each cut, extension kept.
  4. A move onto the stick: two symbolic links left behind, and "Undo can’t move these items back…" naming their folders.
  5. The copy: "These symbolic links can’t be stored at the destination and were left out".
  6. The file prompt: "“Standup 10:00.md” will be saved as “Standup 10_00.md” in this location."
  7. The folder prompt, ending "Items whose names change to suit this location overwrite items with the new name."
  8. A copy onto a server that stopped answering: the docked row says "Preparing items…" with Cancel and no count.
  9. The move: a dialog with "Preparing items…" and Cancel.
  10. F2 on the stick refused: "Names in this location can’t contain “:”, “?”".
  11. 10 and 16 in a light Omarchy theme.

How to test

Step 1

  1. Mount an NFS export or an sshfs share; scripts/fslab/fslab.sh up provides both inside a container. On that mount, move a large file and a folder into another folder.
    Expected: the moves finish instantly without copying.
  2. Paste the same names again and choose Replace, once with Trash available and once without (for example on a root-owned NFS export).
    Expected: the item is swapped, with no "unexpected system error" and no second copy pass.
  3. On a vfat or SMB mount, rename notes.txt to Notes.txt with F2, then undo.
    Expected: both succeed.

Step 2

  1. Build a test folder on a local disk:
    mkdir -p ~/t/src/ro && cd ~/t/src
    echo a > a && ln a b && mkfifo pipe && truncate -s 1G sparse.img
    python3 -c 'import socket; socket.socket(socket.AF_UNIX).bind("sock")'
    setfattr -n user.note -v hi ro && chmod 0555 ro && touch -d 2001-01-01 ro
    Copy src to another folder on the same disk, then to another disk.
    Expected:
    • ro keeps mode 555, its 2001 time and user.note.
    • a and b share one inode wherever the destination keeps links.
    • pipe is a FIFO.
    • sparse.img takes almost no space on ext4, btrfs or tmpfs.
    • A warning lists sock as left out.
  2. Copy a folder holding Makefile and makefile to a vfat or exFAT stick.
    Expected: makefile (1) appears on the stick, with a notice. If you move the folder there instead and then undo, both names come back.
  3. Run while :; do date >> ~/t/live/log.txt; sleep 0.2; done, then move ~/t/live and a few other files to another disk.
    Expected: everything else moves. log.txt stays, with a warning that it changed during the move.
  4. Move 300 small files, selected individually, to another disk.
    Expected: they copy in parallel, "Writing to device…" shows at the end, and every file arrives.
  5. Cancel a large folder copy halfway, and cancel a Merge halfway.
    Expected: no partial or truncated item under a real name.
  6. Optional: scripts/fslab/fslab.sh test local_operations:: repeats the unit tests on every lab mount.

Step 3 (a throwaway USB stick, or the lab's mounts)

  1. Build a folder of awkward names on a local disk:
    mkdir -p ~/t/names/inner && cd ~/t/names
    touch 10:00 'notes.' CON aux.c 'report?.txt' "$(printf 'caf\xe9.txt')"
    ln -s 10:00 link && ln -s missing inner/dangling
    Copy names to a vfat or exFAT stick.
    Expected: the stick holds 10_00, notes, CON_, aux.c, report_.txt and caf_.txt. "Completed with errors" lists each fixed name with its new one, and link and dangling as symbolic links left out.
  2. Copy ~/t/names/10:00 into the stick's names folder.
    Expected: the prompt opens with "“10:00” will be saved as “10_00” in this location." Keep Both adds 10_00 (1). Cut and paste the same file: Keep Both is offered for the move, and Ctrl+Z moves it back.
  3. Copy the whole ~/t/names folder onto the stick again.
    Expected: the merge prompt ends with "Items whose names change to suit this location overwrite items with the new name." Merging puts the old 10_00 in the Trash, and Undo restores it.
  4. On the stick, rename a file to x:y, then to notes., then create a folder named CON (F2 and New Folder, then r and a in 10xer mode).
    Expected: each is refused with "Names in this location can’t contain “:”", "Names in this location can’t end with a space or a period", or "“CON” is a reserved name in this location". Nothing changes, and the 10xer prompts stay open. The same names are accepted on ext4.
  5. On the stick, create a file with a 100-character CJK name (python3 -c 'open("中"*100 + ".txt", "w")' in the stick's folder), then copy it to your home folder.
    Expected: it arrives as 83 characters plus .txt, listed under "These names were too long for the destination".
  6. tar -cf ~/t/names.tar -C ~/t names, then Extract to… the stick.
    Expected: a numbered names folder whose members have the names step 10 gave them; the links are left out, the report lists both, and the extraction completes.
  7. Delete the names folders from the stick and the two links from ~/t/names. Move ~/t/names to the stick, then undo.
    Expected: every original name (10:00, notes., CON, report?.txt, caf\xe9.txt) is back in ~/t/names, and nothing is left on the stick.
  8. Recreate the link (ln -s 10:00 ~/t/names/link) and move ~/t/names to the stick again.
    Expected: link and its names folder stay in ~/t, reported as left behind, and the report says “Undo can’t move these items back…”, naming names.
  9. Select notes.txt in two folders a and b (for example in search results), copy both to a third folder, then into a.
    Expected: the third folder gets notes.txt and notes (1).txt, with a notice under "These names were already taken". In a, only b's file prompts; Keep Both adds notes (1).txt (the duplicate) and notes (2).txt (b's).
  10. Optional, with other media:
    • ntfs3: aux.c stays, CON becomes CON_, links are copied. ntfs-3g: aux.c becomes aux_.c; a folder of 240 d characters moves within the drive and takes an F2 rename at once, with no stray entry.
    • Samba without POSIX extensions: aux.c becomes aux_.c, links are left out, a 220-byte folder name is cut to 213, and Makefile and makefile from two folders become Makefile and makefile (1). Move a folder there, open it and undo at once: all of it comes back.
    • sshfs: a selected symbolic link moved there lands, and its source is removed.
  11. Optional: paste into a sshfs folder whose sftp-server you have paused with kill -STOP.
    Expected: a copy's docked row soon shows "Preparing items…" with Cancel and no count (a move shows a dialog), and Cancel abandons the paste without a prompt.

Related issue

Closes #1530
Refs #1590 (steps 4–8 continue in #1729)

ogarza added 29 commits October 13, 2026 20:54
exfat-fuse got the racy recheck only once udev named its device's
format. Without a record, or with one the process cannot read (Flatpak
without /run/udev, containers, a mount seen before udev finished), it
got none, and a same-size rewrite within one tick deleted the newer
source. For the barrier the unrecognised case is the safe one; for the
recheck it is not, so a fuseblk mount of unknown format now counts as
exFAT's two-second window.
The racy recheck took the source's time granularity from the first file
a moved item's copy read. The walk crosses mounts, so a coarse mount
inside a moved folder went unchecked whenever a file outside it was
read first, and a fine-grained folder holding a coarse mount read first
made every other file take the digest copy. Each file now asks its own
mount, one statx that never syncs, cached per mount.
Filesystems that are not multigrain, vfat among them, stamp times from
the kernel's coarse clock, which runs up to a tick behind the clock the
recheck reads. A file read just after its tick ended was taken as
settled while a rewrite could still be stamped within that tick, and
the wait woke exactly at the tick's end, when a rewrite right after the
comparison could too. Both the classification and the wait now allow
100 ms more.
The racy recheck read the source to its end before comparing digests.
A source that kept growing kept it reading, and batched deletions run
with a cancellable nothing cancels, so the move could not finish while
the source grew. It now reads at most one byte past what the copy holds,
which already tells a file that grew.
The racy recheck waited on the wall clock until a rewrite would move
the source's modification time. A clock set back after the copy read
the file made that wait last as long as it went back, with nothing to
cancel it in a batched deletion, and a rewrite could then be stamped
within the tick the copy read. A clock found before the copy's read now
keeps the source as changed; otherwise the wait lasts at most the
mount's window.
…e it reaches them

FAT stores local times, so files written by Windows or a camera in a
time zone ahead of ours read as modified in the future. The racy recheck
counted every such file as unsettled and read it again before deleting
it. On mounts our own clock stamps (FAT, exFAT, fuseblk, HFS), a rewrite
gets a time no later than that clock, so it cannot leave a time ahead
of it as it is: such a file is now deleted without reading it again
while the clock is still before its time, checked after the last stat.
Once the clock reaches that time, the file is compared as before. sshfs
keeps comparing them, as the server's clock stamps its times.
Rows for a FAT file dated ahead of our clock that the clock reaches:
before the deletion, rewritten right after the comparison, which must
wait a full window from the file's time rather than from the read; and
as the deletion looks at it, which the check after the stat must catch.
The racy recheck's rows read 8-byte files in one read, so comparing or
digesting only the first chunk went unseen. Rows with four-byte reads:
an unchanged source is deleted, and one whose first chunk is rewritten
right after the comparison read it is kept by the stat that follows.
A copy that opens a name of a linked file on an SMB source holds that
file so no other copy opens another name of it meanwhile. The hold was
released after the descriptor only because its field was declared
after the descriptor's, which reordering the fields would silently
undo, and the descriptor is closed by dropping it, which tests cannot
observe. The descriptor and the hold now live in one type whose drop
closes the descriptor first, whatever the field order, and the hold
joins it as soon as the name is open.
…rlaps

The test held the first linked name open for up to five seconds until
the other was looked at, then went on either way: with one bulk worker
(one CPU, or a rotational disk) the names never ran at once and it
passed without testing the hold. It now skips with a message where the
bulk path has one worker and fails when the hold runs out elsewhere.

A new test swaps a linked name for another file between the copy's
look and its open: the hold is on the file seen, so that name must not
be opened, and the copy fails as changed.
The racy recheck knew coarse times only from the source's mount type,
which does not show an SMB or NFS share of a FAT disk, ext2 and ext3
with small inodes, or FUSE daemons serving another protocol's times.
A modification time with no fraction of a second is how such a
filesystem shows itself, so a file read within two seconds of such a
time is now compared too, as one whose times a server's clock stamps.
Only recently modified files pay for it, and files that filesystems
keeping nanoseconds wrote almost never have no fraction.
exFAT keeps modification times to the hundredth of a second, but the
racy rows gave every coarse source whole seconds, which the rule for
times with no fraction now compares whatever the mount. The exFAT and
unrecognised fuseblk rows, and the coarse mount inside a moved folder,
now carry a fraction, so they still need their mount's own window.
Copying a folder that holds two names of one file from an SMB share
failed with "<name> changed while it was being copied: An unexpected
system error occurred" wherever the destination keeps no hard links
(a FAT stick, sshfs): the folder's file jobs opened both names at once,
and the kernel SMB client refuses an open of one name of a file while
another is being opened. Only top-level files waited for each other.

Every open of a file on an SMB source now waits until no other copy has
a name of it open, keyed by device and inode, whatever its link count:
without POSIX extensions the client reports the link count of a file it
listed as 1, which hid the names from the old check.

Lab (Linux 7.2.5, Samba 4.24.7), 20 linked pairs written on the server
and copied to vfat: cifs-nocase and cifs-posix failed 3 of 3 rounds
before and pass 3 of 3 after; fresh pairs opened by two threads at once
fail with EINVAL 149 of 150 times on both shares.
Copying a folder whose names are all claimed (one holds a "~1" short
name) onto an SMB share stalled for 35 s, Samba's lease break timeout,
in the rename that publishes the folder: names made with mknod and
looked up by name while other files of the folder were being written
left the server waiting on a break the client never answered.

On SMB a claim now creates the file exclusively, read-only, and reads
its identity from the descriptor, as where nodes are refused.

Lab (Linux 7.2.5, Samba 4.24.7), 2,001 claimed 1 KiB files from tmpfs,
3 rounds: cifs-nocase 36.15-36.25 s before, 0.61-0.67 s after; cifs
1.20 s then 36 s before, 0.59-0.64 s after; cifs-posix 0.75 s before,
0.69-0.72 s after. A Python replay of the same calls stalls 35.0 s in
the rename every time with mknod and stat, and never with exclusive
read-only creates (up to 6,001 files).
Add a "Copying" section to the filesystem compatibility guide: how
native copies are published (O_TMPFILE, .strata-copy-* stages, in place
where nothing can be placed), the data ladder and its kernel gates, the
metadata order and what each lab mount keeps, read-only folders, case
aliases and claims, hard links, special files, sparse files, merge
stages, how a move decides which sources to delete (manifest, hard-link
accounting, relaxed identity, the racily clean recheck), the durability
barrier of each filesystem family with batches and parallel moves,
restores through the engine and the completion report.

List .strata-copy-* as safe to delete and narrow .strata-replacement-*
to Replace stages, record the residual limits, the copy quirks the
tests emulate and the lab's flush and claim measurements, and drop the
statements the engine made false: the stage identity read by name, a
copy that loses writes and xattrs, flushes for removable drives only,
and restore copies without metadata or a flush.
… tests only

The paste and undo now go through move_owing and replace_owing, so
move_local, move_local_with_progress and replace_local_with are called
only by tests, and the kernel override is the only user of lock in
data.rs. The binary target warned about all four, which fails clippy
with -D warnings.
Name the complex table row and helper return types, take a slice from a
reference instead of cloning into one, use then_some for an eager value
and arrays instead of vec! where nothing grows.
…ystem

The pinned quality container keeps TMPDIR on overlayfs (here over
btrfs), where three tests failed:

- the sparse copy's one-mount dense row asserted a fully allocated copy,
  but copy_file_range within one btrfs or XFS filesystem shares the
  source's extents, holes included; the content and progress checks of
  that row stay
- the in-place merge expected the alias order of folders that create
  their files, but overlayfs is a claiming family; the destination is
  now an emulated ext4 mount
- the SMB Replace test located the displacement by its EXCHANGE, which
  only filesystems on the exchange list use; the emulated share now
  reports the SMB filesystem type and the original is set aside by a
  rename the test finds instead
…rite test

On kernel exFAT, change times advance in 10 ms ticks, so the racer's
rewrite often landed in the tick the file was created in and left its
change time as it was. The row emulating cifs with noserverino has no
content comparison to fall back on, and the source was deleted. The
racer now waits until the filesystem stamps a later change time before
it rewrites, so both rows check what they claim on any base.
…anged

Every error from opening a listed file or folder read "changed while it
was being copied", so an unreadable file showed "keys changed while it
was being copied: Permission denied". Only errors that say the name no
longer holds what was listed (ENOENT, ENOTDIR, ELOOP, ESTALE, ENXIO,
ENODEV) keep that wording; the others, such as EACCES, EPERM, EIO and
the SMB client's EINVAL, now read "Could not copy %{name}: %{error}".
A cancel that comes after the last item was copied still closes the
pending batch, deletes every source and records every item as moved,
on the sequential and the parallel path. The paste then reports
Cancelled with every item completed and none failed or left out, as a
cancel too late to stop anything has been reported since the removable
flush work. No test covered the parallel path's cancel or the final
batch close after a late cancel.
After this machine writes a file on an SMB share, the kernel client keeps
its handle open for the mount's closetimeo and refuses an open of another
name of the file with EINVAL meanwhile, so copying a hard-linked second
name right after a write failed with "Could not copy".

Opens of SMB sources that fail with EINVAL are now tried again, backing
off, for closetimeo (from mountinfo, one second by default) plus half a
second, then fail as before. The wait stops at once on cancel, runs on
the copy's worker thread, and costs nothing when the open succeeds.
Other errors and other filesystems are not retried.
A real second name of a just-written file is refused by a real SMB mount in real time, which the test clock cannot move past, so the emulated refusal applies to a plain file.
The worker panic, start, stop and record errors of the copy engine and
the deletion reached the failure dialog as hard-coded English. They now
go through the catalogs like the neighbouring messages, under six
strings added to all eleven languages.
The barrier gave up with Permission denied when no folder of the
destination's mount could be opened for reading, so a durable move into
a write-only folder that is a mount root failed before copying anything.
Where only the filesystem is flushed, syncfs accepts any descriptor on
it, so an unnamed file made in the destination serves once the readable
ancestors run out. A folder's fsync still needs a readable folder.
A tilde followed by a digit anywhere in any sibling name sent every
child of the folder through the claim-first path on every destination
that may alias names, at two to three extra calls per file. Only
BASE~N of at most eight characters with at most three of extension can
be a generated short name, so only that shape counts.
Ordinary folder monitors request rescans too, and their columns still
get the incremental removal before the reload.
Route::new looked the source mount up twice per sparse file, and the
move path once more in copy_file for the same family. The route now
takes the mount copy_file already resolved and asks the filesystem at
most once otherwise.
stores_holes excluded only the kernel's FAT, exFAT and ntfs3 drivers. A
fuseblk mount of the same formats is the FUSE family with a format tag,
so a sparse source was copied with hole skipping onto exfat-fuse, which
zero-fills every skipped hole inside one uncancellable write. Both FUSE
formats now get their holes written as zeros like the kernel drivers.
@ogarza

ogarza commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator Author

Review follow-up pushed, one commit per confirmed finding (each thread has a reply naming its commit):

  • f134591 fix(operations): a placeholder the rename left in place after a lost reply is removed on stable-inode mounts and the errno reported, instead of Unconfirmed plus a stray empty file or folder. Placement reads the learned stable_inodes capability, so FUSE keeps the previous behaviour.
  • 4526159 fix(operations): stores_holes also refuses fuseblk formats, so exfat-fuse and ntfs-3g get holes written as zeros like the kernel drivers.
  • 6ea12f2 fix(operations): a durable move into a write-only mount root takes its barrier from an unnamed file when no folder of the mount can be read and only the filesystem is flushed.
  • f2c3da5 perf(operations): only the BASE~N short-name shape forces the claim-first path.
  • 9cdc0cd perf(operations): the source mount is resolved at most once per copied file.
  • ce17bfa docs(browser): the rescanning comment matches the code.
  • e98f7d9 fix(i18n): the fourteen hard-coded worker messages become six catalog strings in all eleven languages.
  • 382a4a3 merges origin/main (dccef53, sidebar drop feedback) into the branch; no conflicts.

Also updated: the PR body's sparse-copy and lost-reply lines, and the lost-reply paragraph in docs/filesystem-compatibility.md.

Validation, scoped as AGENTS.md asks, all through scripts/test-headless.py on a private display:

  • adapters::local_operations::tests::placement:: with the barrier, short-name and sparse-copy tests and i18n::: 50 passed.
  • tests::sync::: 23 passed.
  • tests::moves::, replacement::, folder_copy::, file_copy::, restore_safety::, merge::: 208 passed, 1 ignored.
  • tests::file_copy:: and tests::moves:: again after the final signature change: 75 passed.
  • After the merge: the merged tree builds, and the sidebar_drop_feedback tests main added pass with the placement and barrier tests (5 passed).
  • scripts/quality.sh fmt and scripts/quality.sh clippy in the pinned container: clean.

Not run locally: the full quality.sh test suite and E2E, since the change is bounded to the copy engine, placement and the catalogs; CI remains the authority.

@ogarza
ogarza marked this pull request as ready for review October 17, 2026 15:59
vboxsf keeps a name's inode number for whatever a rename puts there, as
the compatibility notes already say, yet stable_inodes() called it
stable because its type falls in the Other family. A rename over a
reserved placeholder whose reply was lost then took the moved empty
file for the placeholder and unlinked it. The lost-reply placement test
gains vboxsf rows that emulate the kept number.
Before 6.10 an unprivileged linkat(AT_EMPTY_PATH) fails with ENOENT
before the name is looked at, so the engine retries through /proc and
the seam counted two LinkFd calls, firing `after` racers on the failed
first one. CI saw a racer remove a copy that was not there yet and a
link count of 2. The seam now stands in with the /proc form where the
host refuses the plain one, and the ProcOnly and Unavailable quirks
keep covering the older kernels. The taken-name test asserts that every
link targets the taken name instead of counting calls.
… alike

On kernels before 6.13 two inodes created within one coarse clock tick
share a birth time, so on CI the replacement of a merged copy on an
emulated exFAT mount passed for the copy by type, birth, size and time
and the source was deleted. The row now waits until a new inode is born
in a later tick before the move starts.
The "Preparing items" layer of a transfer whose destination is slow to
answer lives in the window overlay and was dismissed only once the
conflict check returned, so closing the tab left it covering the
window. Disposing the view now cancels the check and dismisses the
layer, and the transfer copies nothing.
A rename keeps the inode, so checking its mode and time after checking
its identity cannot fail.
Drop comments that restate the code, reword garbled or imprecise ones,
and say that the completion report lists the names the destination
changed, since same-name numbering inside an archive is not reported.
… check

put_back_unreplaced left an original in the aside folder when its name
turned out taken between the stat and the put-back rename, and remove()
then deleted it with the folder after the flush although the merge had
replaced nothing there: a merge without Trash whose incoming item was
left out, with another program creating the name in that window. A
taken name now ends the merge like any failed put-back, with the aside
folder kept and named in the error.
Drop docs that restate signatures, reword a replace doc that promised no
window without the original, and say that merge originals go aside where
Trash is unavailable.
@l0gicgate

l0gicgate commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Review of 382a4a3 with main at ed1423d merged in (683d8f2, no conflicts), then main at 0a031d4 (4b9a993; one conflict in src/ui/notice.rs, where this PR's add_notice and main's show_status had each split show_notice into a helper with one flag, resolved by keeping both flags and all three entry points). The whole diff against main was read by subsystem (placement and mount profiles, copy engine, Replace/Merge/restore/undo, names and archives, app/UI, the test seam), the seven review threads were checked against the code, and the four Rust test failures of the last CI run were root-caused. Review fixes are pushed as one commit each; nothing was force-pushed.

Prior review threads. All seven follow-ups do what their replies say: f134591 (stable_inodes gate before removing a placeholder), 4526159 (stores_holes refuses every fuseblk format), 6ea12f2 (O_TMPFILE barrier for write-only mount roots, folder-fsync plans still need a readable folder), f2c3da5 (BASE~N shape), 9cdc0cd (OnceCell source mount), ce17bfa, e98f7d9 (six catalog strings in all eleven languages).

Fixed

  • b5ef373 fix(operations): MountType::stable_inodes said vboxsf keeps inode numbers (its type falls in Family::Other), while docs/filesystem-compatibility.md says vboxsf keeps a name's number for whatever a rename puts there. With f134591 that made a lost-reply rename over a reserved placeholder unlink the moved item when it was an empty file (the placeholder check is identity, regular file, size 0; vboxsf reports no birth time). vboxsf is now unstable; the lost-reply placement test gains vboxsf rows that emulate the kept number, and they fail without the fix.
  • 2a1a546 fix(browser): the "Preparing items…" layer of a transfer whose destination is slow to answer lives in the window overlay and was dismissed only when the conflict check returned, so closing the tab left it covering the window until the stalled share answered. dispose_file_progress now cancels the pending checks and dismisses their layers; a GTK test closes the view mid-preparation and checks the row is gone and nothing was copied.
  • 2bb4dfd test(operations): root cause of two CI failures. Before Linux 6.10 an unprivileged linkat(AT_EMPTY_PATH) fails with ENOENT before the name is looked at, so link_tmpfile retries through /proc and the seam logged two LinkFd calls and ran after racers on the failed first one (fs_quirks.rs runs racers whether or not the call succeeded, now documented). On CI's kernel a_moved_source_stays_when_its_copy_is_gone_before_the_deletion removed a copy that was not there yet ("The copy stopped unexpectedly") and a_name_taken_just_before_the_link_is_left_alone counted 2; both passed only when another test had left TMPFILE_LINK at PROC. The seam now stands in with the /proc form where the host refuses the plain one, so emulated mounts behave like 6.10+ everywhere; ProcOnly/Unavailable rows keep covering old kernels. The taken-name test asserts every link targets the taken name.
  • e101d1c and 02f257e test(operations): root cause of copies_a_mount_numbers_afresh… (exfat, folder, Merge, ReplacedAlike; and, in the first rerun, vfat, folder, Merge, FolderReplaced). Before Linux 6.13 two inodes born in one coarse-clock tick share a birth time; arrival and the copy's stage file were created milliseconds apart, so on CI the replacement matched the copy by type, birth, size and time (no digest, since the mtimes were an hour old) and the source was deleted. Production is as designed; the rows now wait for a later birth tick before the move (after making arrival, and after making the merge's target folder for the row whose racer replaces that folder).
  • 58840c7 fix(operations): merge_aside::put_back_unreplaced kept an original in the aside folder when its name turned out taken between the stat and the put-back rename (Err(PlaceError::Exists)), and remove() then deleted it with the folder after the flush, although the merge had replaced nothing there (merge without Trash, incoming item left out, another program creating the name in that window). The taken name now ends the merge like any failed put-back: the aside folder stays and is named in the error. The without_trash_an_original_the_merge_left_nothing_in_place_of_stays test gains that row.
  • b01bb4f test(operations): dropped mode/mtime asserts after a rename that the identity assert already implies.
  • 227a94d and 17c19d1 docs(operations): comment audit of the 1,400 added comment lines; deleted or tightened the ones that restated code or were garbled (listed in the diff), and docs/archives.md now says the report lists names the destination changed (same-name numbering inside an archive is not reported, per rename_cause and its test).

Not changed, for a follow-up (#1729 or here as you prefer)

  • stable_inodes still defaults to true for unknown types and when the mount table lookup fails (mount_profile.rs:56). 9p, ceph and virtiofs are stable, so this is fine today, but an allow-list would be the conservative direction for removals.
  • manifest.rs:217-219 holds: once one name of a hard-linked file was deleted, any ctime change on the remaining names is accepted (size/mtime still guard content); the doc's "accepts only those changes" overstates it.
  • Undo of a merge that placed read-only (0o555) folders ends in Undeletable(EACCES) because manifest::remove never loosens modes (tree.rs:1560-1572, restrictive::tighten). Nothing is lost, but such undos always complete with errors.
  • Quirks::vboxsf() sets no mount_type/fs_type, so its 36 uses exercise the host filesystem's family and clock; same for Quirks::default(). The new vboxsf rows set mount_type explicitly.
  • FsQuirks::install/Drop reset the process-global TMPFILE_LINK/COPY_RANGE_MISSING without a lock while ~60 seam-installing tests do not take serial(); call-count assertions elsewhere (OpenTmpfile, worker peak) can still flake under that. The glib main-context cascade also remains: one failing paste test aborts every later test on another thread (thread_guard panic), which hides the first failure's output; seen once locally in 11 runs.
  • tests/sync.rs:877 picks its worker count from the real device's rotational flag, so it fails on a rotational host.
  • placement.rs:228-249 verified: after a successful rung, whatever now sits at to with another identity is moved back to from, including a racer's file.
  • progress.rs:416,444 "Copy/Move worker stopped unexpectedly" are still raw strings (moved from main, not new).
  • compression.rs:557 publish_numbered computes but never tries the last candidate; destination.rs:184 numbers readme. as readme (2). where names.rs gives readme. (1).
  • Agents.md "Test value": copy.rs::a_name_given_back_that_the_mount_refuses_outright… is the default-policy row of a_name_refused_as_missing… with a message check; file_copy.rs::a_file_being_copied_is_invisible_until_complete overlaps files_use_a_hidden_stage…. Left in place since each adds one distinct check.
  • A same-filesystem replacing move removes its set-aside original inline (replacement.rs SourcePlaced::SetAside), and a failed removal fails the item and stops the paste. The staged path behaves the same once its batch closes (Settling counts the item failed and the paste loop breaks on settling.failure()), so the two paths agree; noting it because the item then has no undo record although the source already sits at the target, and the message names the hidden .strata-replaced-* file.
  • A user cancel of a no-Trash merge after it placed an item over an original ends as "The merge stopped. Originals that could not be put back are in …" rather than Cancelled, and leaves .strata-merge-<id> in the target (merge_aside::abandon hits Exists on the merge's own placed copy). Safe, surprising.
  • trash.rs:66-84 verify_trash trashes by path after pinning identity by name; an item swapped in between is trashed instead and the old identity reported. Inherent to g_file_trash; recoverable.
  • replacement.rs:206-208 publish_staged_without_replace returns early with staged dropped on the main thread (closes the parent fd there) while the rest of the module uses OffMain.
  • tests/restore_safety.rs:1363-1368 waits up to 5 s for two workers in a racer and proceeds silently if they never arrive; on a loaded shard the "neither Trash copy deleted before both copied" check can pass vacuously.
  • UI: KeptCause::Undeletable uses the unquoted Could not delete %{name}: %{error} while sibling lines quote the name; transfer_report.rs::heading() is plural even for a single renamed item shown as an Information summary.

Validation (worktree, private Xvfb and D-Bus, scripts/test-headless.py)

  • cargo fmt --all --check and cargo clippy --all-targets --all-features -- -D warnings: clean.
  • Complete cargo test --all-targets --all-features: 3158 passed, 0 failed, 10 ignored (524 s), run twice: on the merged tree and on the final tree.
  • adapters::local_operations::: 11 runs (3 pinned to two CPUs) before the fixes, 1 cross-test abort (above); after the fixes the module and the merge/moves/replacement/undo/restore groups pass.
  • Each new test was run with its production change reverted and fails there.
  • Not run: E2E (scripts/e2e.sh); the changes are in the copy seam, tests, one mount rule and one view-dispose path. Visual evidence for the dispose fix was not captured: it removes a layer that only a stalled destination shows, and the GTK test covers it.

CI. On the first push every check passed except Rust shard 1, which failed the FolderReplaced row above on the 6.8 kernel; 02f257e fixes it. After 02f257e and the second main merge, all twelve checks on 4b9a993 pass. "Dependency and spelling policy" passes on this head (it had failed on the previous head and on main at ed1423d with the zip 8.6.0 advisory RUSTSEC-2026-0369).

…ed folder too

On CI's kernel the folder another program made at the merged folder's
name was born in the same coarse clock tick as that folder, so on the
emulated vfat mount it passed for the copy by type and birth time and
the source was deleted. The row now waits for a later tick after making
the target folder, as the replaced-alike row already does.
@l0gicgate
l0gicgate merged commit c17db1a into main Oct 17, 2026
13 checks passed
ogarza added a commit that referenced this pull request Oct 18, 2026
Replace without Trash, archive Replace and the case-only rename now move
an original into a fresh .strata-originals-<uuid>/ folder under its own
name, so Restore never has to ask what it was called. The move is a plain
rename plus an identity check: nothing else knows the folder, and the
placement ladder's link and reserved-name rungs left states there that a
restore takes for an original (lab block 5). Merge's set-aside into its
own mirror folders uses the same rename. Putting back goes through the
ladder, and the folder is removed through the leftover-aware rmdir.

Linux lets a folder change parent only when the user may write to it, so
a read-only folder its owner can open is made writable to them for the
instant of each move into or out of the originals folder, and its mode is
put back at once.

A replacing move on one filesystem whose original cannot be removed
afterwards no longer fails the item: the source already sits at the
target, so the move completes with its undo record and reports the
original kept in its folder (#1615 follow-up F11). Messages name the
folder and the item's own name rather than a flat hidden file.

Where the device barrier fsyncs both the folder and the filesystem, it
now fsyncs the folder before syncfs as well as after it, and ntfs3 gets
that pair too: ntfs3's syncfs reported success for renames a lost device
never received, while FAT's writes the copy back without flushing the
device's cache, which only the later folder fsync does.
l0gicgate added a commit that referenced this pull request Oct 20, 2026
…e mounts (#1729)

* chore(operations): start filesystem compatibility steps 4-8

Steps 4-8 of #1590 follow #1615; implementation starts once #1615 is merged.

* refactor(operations): keep every hidden name prefix in one table

Add model::hidden_names: the prefixes Strata creates, including the
.strata-originals- containers set-aside originals move into, the legacy
forms released builds left (.strata-symlink-, tempfile's six-character
suffixes), and the names other programs leave: the silly renames the
NFS, FUSE and SMB clients make, and the <name>.ntfs-3g-<ten digits>
link ntfs-3g makes while renaming over an entry. classify and
foreign_leftover recognise a name only by its whole prefix and suffix.
Placement, the copy engine, archives and merges now create names from
the table. No behaviour change.

Refs #1590

* test(operations): emulate an unplugged device in the syscall seam

Add Quirks::unplugged_after: once the matching call has run, every
later call in the scope fails with EIO, as a yanked device does, so an
operation's own cleanup fails too, until FsQuirks::replug. Only the
unplugged scope fails; a source in its own scope keeps answering. Trash
in a scope now reports the seam's error instead of success without
moving anything. A copy cut off at its stage's second write leaves only
that stage, classified as an incomplete copy, holding the bytes written
before the unplug.

Refs #1590

* fix(archive): try every numbered name Keep Both allows a new archive

Publishing a new archive under Keep Both computed each numbered name
after the one before it was found taken, so the loop ended having
computed its last candidate without trying it. The candidates are now
made before each attempt, so all of the bound's names are tried.

* fix(archive): number an extracted name that ends in a dot as Keep Both does

Extraction split a name such as readme. into the stem readme and the
extension ".", so a taken readme. became "readme (2).", a name that ends
in a dot again, while Keep Both gives "readme. (1)". Both now take the
stem and extension from one helper in names.rs.

* fix(operations): drop a published stage off the main thread

Publishing a stage without replacing returned on success, and on an
unconfirmed placement, with the stage still owned by the async step, so
its parent folder's descriptor was closed on the GTK main thread. The
stage is now held through OffMain like the module's other descriptors.

* fix(operations): leave another item found at a placement's destination

When a placed item turned out to be another one at its new name, the
placement moved whatever was there back to the source name. That item
could be one another program put at the destination just after the
move, which then landed at the source, possibly a hidden set-aside or
Trash name.

A placement that knows which item it moves now checks the source name
just before the move and refuses another item there without moving
anything. Another item found at the destination afterwards is left
where it is and reported as unconfirmed. Where that destination is a
hidden name Strata chose, as when it sets an original aside or parks
an item during a case-only rename, the error names it.

* fix(operations): remove read-only folders a merge placed when it is undone

Undoing a merge without Trash deletes what it placed by its record, but
a folder the copy gave a mode such as 0555 kept the undo from deleting
anything inside it, so the undo always ended with "Permission denied".

Each folder of that record is one the merge made, so the undo now gives
its owner access while its entries go, and gives the folder its mode
back if it stays, also when the undo is cancelled. Folders outside the
record, such as the one the item sits in, and the sources a move
deletes are never changed.

* fix(operations): put originals back when a merge without Trash is cancelled

A merge without Trash sets the originals it overwrites aside in a hidden
.strata-merge-<id> folder. Cancelled after it placed a copy at one of
their names, it could not put that original back, as its own copy held
the name, so it ended with "The merge stopped. Originals that could not
be put back are in ..." instead of as cancelled, and left the folder.

The merge now remembers what it placed at the names of set-aside
originals. A stopped merge deletes such a copy while it is still as
placed, puts the original back, and removes the emptied folder, so a
cancel ends as cancelled. Anything else at the name stays, and so does
the original in the folder, which the error names.

* refactor(operations): share the wait for an SMB deferred close

Move the budget and backoff of the SMB source-open retry into a
deferred_close module, so the leftover wait and the SMB folder-rename
retry of #1590 step 4 can use the same capped, cancellable wait. No
behaviour change: closetimeo plus 0.5 s, at most 10 s in total, 10 ms
pauses doubling to 50 ms, on the operation's worker.

Refs #1590

* feat(services): register Strata's reads and running operations

Add services::file_activity, one process-wide registry of the reads
Strata holds open and of the file operations it runs, so step 4's
provider wrapper can release previews before an operation changes
files, and steps 7 and 8 can tell which folders an operation touches
without guards of their own.

Reads register a hold under the path they were given and its real
path before they open anything: the sandbox, pool and media funnels,
the in-process content, text and Markdown image reads, and the
background folder listings behind item counts, audio folder art,
video subtitle lookups, numbered-name checks and the renamed-folder
probe. A release stops those holds and waits for them, a fence
refuses new ones, and begin, is_changing and is_active_in answer for
running operations. Queries are in memory, one lock each.

A refused or stopped read fails with "This item is being changed by a
file operation.", so item counts, media details, folder art and
subtitle counts do not cache it as a failure, and a preview whose
type needs sniffing reports it instead of letting GIO open the file.
Stopping a song's folder cover leaves its tags. Nothing fences or
releases yet.

Refs #1590

* fix(operations): learn tmpfile linking and copy_file_range support per mount

How unnamed files link and whether copy_file_range exists were process-wide
statics that every test scope reset on install and drop, so a concurrent test
could see another mount's state, or a reset, mid-copy. Keep both with the
mount's other learned capabilities instead: each scope then starts and ends
with its own state, and the seam resets nothing global.

* test: keep a failing test's main-context tasks from aborting the run

A test that panicked while a paste was in flight left its local task, and
the GIO calls that task awaited, on the default main context. The next test
to iterate it, on another thread, polled or dropped the task, or ran a call's
thread-bound callback, there: the thread-guard panic cannot unwind out of
GLib, so the whole run aborted and the first failure's output was lost.

The main-context lock now destroys the glib-rs tasks attached while a
panicking test held it, on that test's thread, then runs the context there
until it has been idle for 100 ms (2 s at most). Dropping a GIO future does
not cancel its call, so the calls those tasks awaited complete on the thread
their callbacks belong to. Sources GIO owns are not destroyed, since that
frees memory GIO still uses.

* test(operations): ask the filesystem seam whether a disk spins

Worker counts read the host disk's rotational flag straight from sysfs, so
the parallel move test failed on a machine with a spinning disk and the SMB
linked-file test skipped there. Read it through FsEnvironment instead: a
test scope answers from its quirks and never asks the host, and the move
test now covers a spinning source, a spinning destination and neither.

* fix(i18n): localize the copy and move worker failures with progress

A copy or move whose GIO worker with progress died reached the failure
dialog as "Copy/Move worker stopped unexpectedly" in English. The copy now
reuses "The copy stopped unexpectedly", and "The move stopped unexpectedly"
joins all eleven catalogs.

* test(operations): fold overlapping refused-name and hidden-copy tests into tables

The outright refusal of a given-back name was the default-policy row of the
refused-as-missing test plus a message check, and the tmpfile visibility
test repeated the hidden-stage test's listing on another path. Each pair is
now one table: the EINVAL row keeps the invalid-name message, single write
and empty folder checks, and the tmpfile row keeps the empty listing and the
2 MiB content check beside the stage rows.

* test(operations): fail the shared-name restore when its copies never meet

The racer that holds the first sync until both Trash items were copied gave
up silently after 5 s, so on a loaded shard the "neither Trash copy deleted
before both copied" check could pass without having waited. It now waits up
to 20 s, as the file's other deadlines do, and the test fails if it gave up.

* fix(browser): quote names left undeleted and give one item a singular heading

The report line for an item that could not be deleted, and the error a
delete or a merge undo shows for it, showed its name unquoted while every
sibling line quotes it. A section holding one item also read in the plural:
one renamed item was headed "These names were already taken", one left-out
special file "These special files can't be copied and were left out", and
the undo note for one item spoke of "these items". The name is now quoted,
and each rename cause, both left-out headings and the undo note have a
singular message, chosen when the section holds one item, as whole messages
in all eleven languages.

* test(operations): evict only unheld entries and emulate cifs inode autodisable

The seam's renumbering made an entry report another inode number even
while a descriptor of the process held it, which the kernel never does:
a held dentry keeps its inode in memory, so it is neither evicted nor
renumbered. evict() renumbers an entry only when no descriptor of the
process refers to it, O_PATH ones included, and says whether it did, so
a test can require the eviction it relies on. The descriptor scan that
emulates NFS silly renames is shared with it.

autodisable_serverino() does what the cifs client does after a server
inode collision, with no mount-table event: serverino leaves the mount's
options and every entry no descriptor holds reports another number. The
made_up_births quirk reports the earlier of a file's modification and
change times as its birth time, as Samba makes one up for a file whose
DOS attributes it does not store. exFAT's folder birth reset was already
emulated. Only the seam changes; the identity tests use these.

* test(operations): report a mount type of their own for the default and vboxsf presets

Quirks::vboxsf() set no mount type or filesystem magic, so its rows ran
with the family, inode-number rule and clock of whatever filesystem
holds the test's temporary folder, and so did every row built on
Quirks::default(). The vboxsf preset now reports vboxsf's mountinfo
type, magic and missing birth times, and a scope without a mount type or
magic of its own reports ext4's instead of the host's, so a row tests
the same mount on every machine.

* refactor(operations): decide every identity through one rule per mount

Two rules disagreed about which mounts keep inode numbers: the move
manifest took FAT, FUSE, vboxsf and cifs without server numbers for
renumbering mounts, while the copy engine counted only FUSE, so a FAT
copy failed as changed when the kernel renumbered an entry it had made,
and lost-reply placeholders, exFAT folder births and the manifest each
kept a check of their own.

The mount profile now derives IdentityTraits once per mount: whether
inode numbers are kept, renewed or unknown, and whether folders keep
their birth times. One pure rule in services, Evidence::compare, decides
from them whether an entry is still one that was recorded: by device and
type, then the birth time where both report one (for folders only where
renames keep it), then the number where the mount keeps numbers, and,
for files and links only, the recorded size and modification time. It
touches no disk, so records can later be compared on any thread. The
copy engine, the move manifest and destination provenance, restrictive
folders, links, the names a copy claims, and the placement ladder's
lost-reply placeholders all decide through it. A copy no longer fails on
an entry of its own, or on its selected source folder, that the kernel
renumbered after eviction.

Only mount types known to keep inode numbers are trusted to: an unlisted
type, or a mount whose type cannot be read, still needs equal numbers
but never has a lost-reply placeholder removed on their strength.

A move's check of a hard-linked file accepted any change time on its
other names once it had deleted one of them. It now reads the change
time through another name of the file in the same item right after each
removal, and later names must show it; across items the remaining
acceptance is documented.

* refactor(services): add the identity record shared by Trash, navigation and load stamps

Trash records keep a device and inode number only, and an open folder's
identity its number and birth time, so neither survives a mount that
renumbers its entries, and both trust a number another item reused.
ItemIdentity keeps what an item was when it was read together with its
mount's identity traits, and same() decides through the one rule the
operations use, by the traits of whichever mount proves less; what the
rule leaves unproven is not the same item. It touches no disk, so the
interface can compare records on its own thread. No site records it yet:
Trash matching, the folders a window follows and the load stamp move to
it next.

* refactor(ui): mark the UI thread and assert file calls stay off it

* feat(volume): watch the mount table on its own thread

* refactor(files): list native folders through the filesystem seam

* feat(volume): bound requests to mounts that stop answering

* feat(operations): add off-thread probes for presence, folders and listings

* fix(operations): prove moved copies by the mount's identity rule

Before deleting its sources, a move checks that each entry of its copy is
still the one it made. Where the destination numbers an evicted entry
afresh, an entry was known by its type and birth time, or by its type,
size and time where no birth time is reported, so on sshfs, exfat-fuse
and vboxsf another file of the copy's size and time renamed to its name
passed for it and the move deleted the source.

The birth time now stands in for the inode number only where both stats
report one, as on vfat, exFAT and cifs with noserverino. Elsewhere the
inode must still match, and a copy the kernel renumbered before the check
keeps its sources, reported as gone. Folders on kernel exFAT, whose birth
time renames reset, are still known by their type and checked through
their entries, and files keep their size, time and contents checks.

This deliberately flips the sshfs row of the renumbered-copies test,
which now keeps its source. A new sshfs row evicts only a copied folder,
and a vfat row shows birth times proving renumbered folders. The copied
links test now evicts only the link, so on sshfs the merged folder's own
eviction no longer hides the link a merge made again.

The settled-copy test now rewrites the copy in place, as another client's
file keeps the number a path-keyed daemon gave the name, so it still shows
that settling keeps the size the copy was written with.

* fix(launch): resolve and start programs and terminals off the UI thread

Opening a terminal, running a program and the AUR or Omarchy update
buttons resolved the terminal with a metadata call per PATH entry and
spawned the child on the UI thread. std's spawn waits until the child
has changed into its folder and exec'd, so a folder or PATH entry on a
dead mount froze the window.

spawn_reaped now takes a start closure and runs it on the reaper thread
that already waited for the child: terminal resolution, the spawn and
its error happen there, and the error comes back to the UI thread for
the dialog. The PATH check asserts it runs off the UI thread. The AUR
button's search for an installed helper, another PATH scan, runs on a
worker before the launch.

Opening an executable without a handler now reads its type and mode from
the asynchronous query it already made instead of a metadata call on the
UI thread.

* fix(browser): forget settings of deleted folders off the UI thread

A folder that fails to load forgets its saved sort and Icons size only
when it was deleted. That proof read the folder and its parent on the UI
thread, exactly when a dead mount's load had just timed out. It now asks
the deletion probe on a worker, through the mount lanes, and drops the
values when the answer arrives. A drive's root is still never taken for
a deleted folder.

Refs #1590

* fix(location): complete typed paths off the UI thread

Every keystroke in the location bar listed the typed folder, and checked
each symbolic link and the typed path itself, on the UI thread. The
parsing stays there; the listing now goes to the child-folder probe on a
worker, one request per text change. Only the latest text's answer is
shown, and the list appears when it arrives. Tab, the selection keys,
and Enter once any of them is waiting, pressed while the folder is being
listed, wait for its answer and then run in the order they were pressed;
once one of them changes the text, the rest wait for the new text's list.

Refs #1590

* fix(window): restore tabs and the default folder without touching the disk on the UI thread

Starting Strata, opening a new tab and the go chords for standard folders
checked their folders with is_dir() on the UI thread, so a tab or default
folder on an offline share froze the window, and any failure, a timeout
included, cleared the default-folder preference.

Saved tabs and the default folder are now taken as written and checked
by the folder probe on a worker before they open. A folder counts as gone
only when it is not a folder, or when the deletion probe finds it missing
beside other entries in a parent without mount points, so a folder on an
unplugged drive or an unmounted share is kept. A restored tab whose folder
is gone closes, and stays in the saved session while its check runs; the
default-folder preference is cleared only for a gone folder. Any other
answer, or a check still running after the mount lanes' stall time, opens
the folder so the pane shows its error. Go chords open standard folders
the same way and still report the ones that are missing.

Refs #1590

* fix(files): close enumerators and streams off the UI thread

GLib closes an enumerator or stream that is still open when its last
reference goes, in place. Dropped by a future on the main context, that
close ran on the UI thread: closedir for every folder a paste measured,
a merge classified or a selection summary walked, and a round trip to the
GVfs backend for remote text previews and camera thumbnails. Closing a
read-only descriptor can block on NFSv4 and exfat-fuse.

Closing<T> holds such an object and, when the UI thread lets go of it,
starts the close on GLib's worker pool, waiting first for a call still
running on it. A merge now lists a local source folder through the
filesystem seam on a worker; remote sources keep their GIO enumerator,
whose close does no I/O.

Local folders are opened without a cancellable, and the cancel is checked
once the open returns: a local open runs to its end once started, and
GTask frees the enumerator of an open cancelled meanwhile on the UI
thread.

* test(operations): put held files aside per mount family in the syscall seam

Unlinking a held file now leaves the leftover each family makes: the
kernel's `.nfs` and `.__smbfile_silly` names, libfuse's `.fuse_hidden`
names, or, with SMB POSIX extensions, a folder that refuses `rmdir` with
`EACCES` until the last close. A leftover lingers after the close for the
time the lab measured, by the test clock, and unlinking one while it is
held fails or hides it again as on the real mount. SMB and FUSE count only
open handles, NFS any reference.

`FsQuirks::hold` stands for another program keeping a file open. The NFS,
SMB, sshfs and fuseblk presets carry their family's behaviour.

* fix(operations): wait for silly-rename leftovers before removing a folder

A file unlinked while another program still holds it stays as a hidden
leftover until the last close: `.nfs…` on NFS, `.__smbfile_silly…` on SMB,
`.fuse_hidden…` on libfuse daemons, and on SMB with POSIX extensions a
folder that refuses `rmdir` with `EACCES` behind an empty listing. Deleting
a folder, deleting a move's sources, and cleaning up a failed copy or a
merge stage then failed with "Directory not empty" or "Permission denied",
or kept the moved folder as changed, though the leftover goes moments later.

`leftovers::remove_folder` now retries `rmdir` while only the mount's own
leftovers are listed: 10 ms pauses doubling to 50 ms, for 2 s on NFS and
FUSE and for `closetimeo` plus 0.5 s, at most 10 s, on SMB, the budgets the
lab confirmed. A folder found empty after a refusal is retried at once, even
when the wait has run out. A folder that anything else keeps fails at once,
as before, and each retry first checks that the name still holds the folder
the caller verified, so a folder put in its place is never removed. A
Delete, and a transfer's deletions, share one wait however many folders
they remove. Cancelling a Delete or a move ends its wait; the cleanup of a
cancelled copy still waits. `MountType::silly_names` tells each family's
leftovers.

* fix(operations): leave other programs' leftovers in place

A recursive delete unlinked the `.nfs…`, `.__smbfile_silly…` and
`.fuse_hidden…` files it found in a folder like any other entry. They are
files another program still reads: NFS refuses the unlink with "Device or
resource busy", SMB answers that the file is already gone, and libfuse hides
it again under a fresh name, so the delete failed on the leftover itself.

Inside a folder being deleted, a leftover of the family its mount makes now
stays, and the folder goes once the leftover does, through the mount's wait,
including when the leftover is already gone by the time the delete looks at
it. Otherwise the folder stays with the leftover and the delete reports it.
Leftovers are never deleted, whether a program still holds them or not.
A name like a leftover on any other mount is an ordinary file, and an item
the user selected by name is deleted as before.

* fix(ui): build context menus and the delete dialog without disk access

* fix(devices): read device facts off the UI thread

* fix(search): register index walks as reads operations can stop

Each folder listing of the in-process search index walk now holds the
folder in the file activity registry under its own and its real name.
An operation that fences the folder refuses the listing, or stops it
between entries, and the walk reports the search as partial instead of
keeping a directory handle open below a folder being renamed or moved.

* fix(search): filter search hits off the UI thread

The search worker now drops hits whose files are proven gone before it
publishes them, so neither List, Icons nor Columns checks a hit on the
interface thread. Each batch still reports how many candidates were
ranked, so asking for more continues past dropped hits. Pruning after a
file operation sends one presence batch through the probe module and
removes only hits proven absent; an unreadable or timed-out answer
keeps the hit.

The removable-device destination chooser checks containment by path on
the interface thread and where a folder really leads on a worker,
through a new real_folder probe. Its validation, listing, folder
monitor and search start only once that probe places the folder inside
the device, so routes that skip validation never show what lies
outside.

* fix(browser): check undo and redo targets off the UI thread

* fix(archive): check archive names and chooser folders off the UI thread

* fix(sidebar): update pinned folders off the UI thread

Pin, unpin, reorder and the cleanup after a deletion or restore now run as
one read-modify-write job on a background settings writer. The job reads
the GTK bookmarks file, applies the change, checks just before its rename
that no other program changed the file and starts over (at most twice) if
one did, then every open sidebar adopts the pins the file holds. A
deletion or restore run unpins everything it removed in one update when
it ends, however it ends, instead of one GIO replace per item. The GIO
writer and atomic_write_config become one writer with the dotfile
ownership rules. Later windows start from the last adopted pins and
re-read the file in the background; quitting waits up to 10 s for
queued saves.

* feat(settings): save settings and state files through one background writer

Preferences, folder settings, the tabs session, folder history, recent
applications, custom themes and the source-preview style scheme now save
on the settings writer instead of the UI thread. Saves of one file that
are still waiting keep only the newest contents, the writer remembers
the stamp of everything it wrote or read, and the setter returns once the
change is published. Re-reads after another process changed a file
(folder settings and defaults saved by the portal chooser, custom themes,
Omarchy theme changes) parse on the writer and apply on the UI thread; a
change of this process's own that is still being saved wins. A
folder-view save always merges this process's unsaved edits over the
file under the cross-process lock and marks only the edits it wrote as
saved, so changes made while it ran stay unsaved. Omarchy state is read
once and re-read only when its files change. The reads that build the
first window stay synchronous as a documented exception, and atomic
writes assert they run off the UI thread; the custom action store's
writes from the Settings page take a named exception until it moves to
the writer.

* fix(operations): register every operation and release Strata's reads before it changes files

Every mutating provider entry and Empty Trash now registers the operation in
file_activity and, before its first change, fences the items it changes,
stops Strata's reads under them and waits up to two seconds for them to end.
Parents are resolved off the UI thread through the mount's lane, so a
symbolic link to the folder still matches; a mount that does not answer
falls back to the names as given. A merge fences each original only as it
moves it to Trash or aside, so the rest of its target stays previewable.

This keeps previews and thumbnails from turning a delete or move on NFS,
SMB and FUSE mounts into silly-rename leftovers, "Directory not empty" or
a source kept as changed.

* fix(preview): stop previews and thumbnails on files an operation changes

When an operation releases an item, the registry tells the UI first: each
window's and chooser's preview drawer clears a preview of that item or of
anything inside it, which ends its decoders without the stall recovery that
would restart them, and shows the browser's focused entry again once the
operation ends. A thumbnail refused or stopped by an operation is no longer
cached as failed; it is admitted again when the operation ends.

The Properties folder-size walk now registers each folder it enumerates, so
a release ends the walk as incomplete and closes its folders instead of
keeping them open below a folder being renamed, moved or deleted.

* fix(sandbox): wait for a sandbox's namespace to exit

bwrap's monitor can be reaped while the init of its PID namespace still
runs, after a normal exit as well as after a kill, and the bind of the
user's file lives until that init is gone. Each sandbox now asks bwrap for
its namespace init on --info-fd, opens a pidfd on it while the sandbox
runs, and after every exit of bwrap waits up to one second for that init
to exit before the read is reported done.

The info goes to bwrap's stderr, which every sandbox already discarded;
inside the sandbox that descriptor is closed and the helper reopens it on
/dev/null.

* fix(devices): release Strata's reads before unmounting a drive

Releasing a drive now fences its mount root and ends Strata's previews,
thumbnails and probes there, waiting for each sandbox's namespace to exit,
before it flushes and unmounts. A held file made the unmount fail with
"target is busy"; a sandbox's bind of a file let it report success while
the filesystem stayed alive until the sandbox ended.

* test(operations): emulate the attribute, daemon and listing caches of network mounts

* feat(files): revalidate the stat that starts a folder load

* feat(files): report a folder's change stamp with each load and on request

* fix(app): follow renamed folders by the mount's identity rule

* fix(browser): validate local folders off the UI thread

* fix(browser): start folder monitors off the UI thread once the folder has answered

* fix(volume): identify SMB entries by creation time and by server numbers while they hold

The cifs client never prints noserverino, so the option check took every
share for one that keeps its server inode numbers, including shares
mounted without them; and it turns server numbers off at any moment,
after a collision or once another client renames a folder it has looked
up, dropping serverino from the options without a mount-table event.

An SMB mount now counts as renewing its numbers in the cached profile,
and each decision on one (a move's deletion check of its sources, the
check of its copy, a lost-reply placeholder) reads the mount's options
again from the kernel's table, once, and compares inode numbers only
while serverino still shows. The server's creation time stands in for
them otherwise. Samba makes that time up for files it did not create
with stored DOS attributes, so a replacement keeping the modification
time repeats it, and once numbers are off the client keeps an entry's
cached number and creation time across a replacement made elsewhere:
where a site records a file's size and times, the rule then compares
them too, and its change time where recorded. A birth time of zero
counts as none on SMB and NFSv4 as on FUSE.

The seam's autodisable now keeps cached entries' numbers and creation
times until they are evicted, eviction gives cifs entries the server's
number while serverino holds or with POSIX extensions, and Samba's
made-up creation times are emulated per entry as the client first saw
them. Fixtures carry real cifs option strings.

* fix(operations): stop comparing birth times of exFAT folders

The kernel's exFAT driver sets a folder's birth time again, on disk, at
every rename whose destination is the folder. A merge without Trash
sets originals aside by renaming them into its hidden merge folder, so
on exFAT the folder no longer matched the identity recorded when it was
made: removing it after a successful merge failed as changed while the
operation was in progress, and a merge cancelled after placing a copy
put every original back but ended as stopped, naming an empty merge
folder it left behind.

One rule now covers what the move check of a copy did on its own: a
folder whose birth time the mount resets, where both stats report one,
is known by its device and type where only an empty folder is removed,
where its entries are checked one by one, or where it sits at a hidden
name of Strata's own. A udev-exFAT fuseblk mount is marked the same,
and the copy check keeps requiring the exact folder where no birth time
is reported, as before.

* fix(operations): check Replace targets, set-aside originals and cleanups by the mount's rule

Replace compared its target with the identity read before the staging
copy by device and inode alone, so on vfat, exFAT and SMB without
server inode numbers a target the kernel evicted meanwhile failed after
the whole copy as changed. After SMB turned server numbers off it was
the other way round: the client keeps the number and creation time it
cached for an entry across a replacement another client makes, so a
file a sync tool replaced with one of the same size and modification
time passed for the confirmed original and was replaced.

The target, of Replace and of an archive, is now checked right before
it goes by the mount's rule as of then, a file with its recorded size,
times and change time where the rule calls for them, and the steps
after use the identity it has now. An original set aside, by Replace
or a merge without Trash, goes back only while the rule still knows it,
by its identity then, and a removal by a recorded identity (an original
set aside, a stage, a cancelled copy's folder, the operation's own
entries after a failure) follows the rule too. Where the rule proves
nothing, the exact identity is still required.

The seam keeps an entry's renumbering across renames, as the kernel
keeps an inode's number.

* feat(operations): pin single items by path where numbers and births prove nothing

On sshfs, exfat-fuse, vboxsf and other mounts that number an entry
afresh once the kernel evicts it and report no birth time, an item read
before a long step could only be known again by its size and times: a
Replace target a program renamed a file of its size and time over
during the staging copy was replaced, a stage evicted before sshfs
published it (without RENAME_NOREPLACE) failed as changed, and an item
GLib's Trash left in place (GLib #4060) passed for trashed once the
kernel had renumbered it, recording an Undo for nothing.

Those single items are now held from the stat that reads them to the
decision with an O_PATH descriptor, which opens nothing on a FUSE daemon
or SMB server and keeps the kernel from evicting the entry, so it keeps
its number: Replace and archive-Replace targets from the plan, file and
archive stages from their last write to their publication, and the item
under the Trash check. A held entry whose name went (ESTALE or ENOENT on
FUSE) matches nothing, and nothing is read by path instead. A held
target still has to pass the mount's rule, since sshfs and vboxsf keep a
name's number for a file put there on the server or by another client. A
folder on kernel exFAT, whose birth time renames reset, is held the same
way. NFS keeps numbers and is never held. Elsewhere the Trash check
follows the mount's rule. A merge compares its stage with the descriptor
it holds before dropping it.

A FUSE daemon whose probe link keeps the file's number and counts two
links, as ntfs-3g passes the real inode numbers on, now counts as
keeping numbers, so its entries need no holding.

* feat(operations): say which program still has a file open

When only another program's leftovers kept a folder, Delete reported
"Directory not empty" or "Permission denied" after the wait, and a move
kept its source folder as "changed during the move".

The error now says a file in the folder is still open, and names the
program when this computer shows it. Strata's own reads and the roots of
its other running operations are looked up first, in memory; an
operation that also covers the folder is the caller's own and is
skipped. Otherwise `/proc` is read once, only for the folder that
failed: a descriptor, or else a mapping, whose path lies in the folder,
confirmed by the mount id and inode `fdinfo` reports for the leftover.
Nothing is called through another process's descriptors. A holder in
Strata's process, in a helper it started as its own process group
(sandboxes, custom actions, file providers), or in another process of
its executable is reported as Strata. A terminal or program Strata
started for the user is named like any other program. Programs are
named by their systemd app unit (uwsm, GNOME, KDE), skipping the units
Strata itself runs in, or GIO's launch variable and the app's desktop
file, otherwise by their process name. With no holder found, NFS and
FUSE say another program holds the file, SMB says a program on this or
another computer, and SMB with POSIX extensions keeps "Permission
denied". A move reports the folder with `KeptCause::StillOpen`, and the
undo of a Replace or Merge without Trash says the folder is still open
instead of calling it changed.

* fix(operations): name what blocks an SMB rename after a bounded retry

Samba refuses to rename a folder while any handle below it is open, from
this computer or another, and Linux reports that as "Permission denied".
Renaming, moving or trashing such a folder failed with that alone.

A folder rename, move or Trash on SMB refused with `EACCES` is now
retried through the shared deferred-close wait, `closetimeo` plus 0.5 s
and at most 10 s, cancellable and on the operation's worker, for the
kernels that may keep this client's closed handles open below the folder
(Linux 6.17 to 7.1, not verified; the lab's 7.2.5 closes them before the
rename, so the retry never ran there). One wait covers every folder of a
Trash, as it does for a Delete. A rename that works costs nothing extra,
and SMB with POSIX extensions, where this computer's open files never
block a folder rename, is not retried. When the rename is still refused,
a program on this computer that keeps a file below open is named, or
Strata when it is Strata's own; otherwise "Permission denied" stays,
since Samba gives the same answer for a real permission problem. A
cancel is reported only when it cut the wait short, never in place of
another failure. An item on SMB refused with `EBUSY`, which a handle on
another computer that does not share delete access causes, is reported
as still open in a program on this or another computer.

* fix(devices): read the Format dialog's facts off the UI thread

The Format dialog ran lsblk for the current filesystem and, on Continue,
for the drive's size, and scanned PATH for the mkfs tools on every
keystroke; the missing-tools dialog read os-release. All of it ran on
the UI thread.

The dialog now opens at once and one worker job answers: the tool scan,
then gather_drive_facts, or the package manager when a tool is missing.
Its rows appear and Continue becomes available when the answer arrives;
a missing tool replaces it with the missing-tools dialog, which now
takes the package manager from the job. The missing-tools dialog and
the formatting progress open on the dialog's own overlay, not on the
sidebar row it was opened from, which a sidebar rebuild during the job
removes. tool_path and PackageManager::detect assert that they run off
the UI thread.

* fix(settings): find AUR helpers off the UI thread

install_source::on_path read the metadata of every PATH entry each
time Settings built the update instruction or the update button's
label, on the UI thread; a PATH entry can sit on a dead NFS home.

The worker that already detects the update method now also looks the
helpers up once and caches the answer in the managed install. The
update instruction, the update button and dialog labels, and
launch_aur_update read that answer, so the label and the action always
agree and the click scans nothing. on_path asserts that it runs off the
UI thread.

* fix(launch): read recent-app history off the UI thread for Open With

Building the Open With dialog read recent-apps.toml on the UI thread to
place the Recently Used section.

The history is now read on the settings writer, after any launch still
being recorded, before the dialog is shown: in resolve() for selections
and the keyboard command (so a newer interaction still drops the
lookup), and when the folder menu opens for a folder's own Open With,
which stays unavailable until the read answers so the click still opens
the chooser at once. The activation fallback shows its chooser only if
no other dialog, such as a repeated activation's chooser, opened during
the read. The dialog is built from the split result and reads no file.
Loading the history asserts that it runs off the UI thread.

* fix(operations): match Trash items by type, birth and attributes

Trash records now carry the shared identity record: device, type, birth
time, the inode number, size and modification time for files, and the
mount's identity traits (with SMB server numbers while they still show).
The archive Replace undo and the trashed views and colors find a Trash
item by that rule instead of by device and inode number alone, so an
item the mount renumbered in Trash is still found (vfat by its birth
time, sshfs-like mounts by size and time), and a reused number with
another birth time no longer brings back the wrong item. Where the rule
proves nothing either way, the exact number still decides.

GLib trashes whatever holds the name when it gets there. The Trash check
now holds the item it checked across the call, except on NFS where a
held file another program removes would linger, and reports it only
once the kernel shows it inside a Trash; when another item took the name
first, it reports the newest Trash entry GLib made for the path, so undo
and saved views follow what actually went to Trash.

* fix(ui): restore trashed views and customizations by the identity the restore reports

A restore now reports, per item, the identity the Trash item had when
the restore worker placed it (ItemRestored, from the stat it already
makes before placing), and the browser passes it with the restored
location. Folder views, colors and icons kept for a trashed item come
back only when that identity passes the mount's identity rule against
the one recorded when the item went to Trash, so a folder renumbered in
Trash on vfat or exFAT gets them back by its birth time, while another
number where numbers are kept is another item.

The UI no longer stats the restored path on the main thread to decide:
ItemIdentity::at_path is gone.

* fix(browser): accept case-only renames on mounts that number each spelling

The rename prompt's "already exists" check compared the raw device and
inode numbers of the two spellings with std::fs, so on exfat-fuse and
other path-keyed FUSE daemons, and on cifs once it turned server numbers
off, renaming foo to Foo was refused before placement could accept it.
The check now runs on the seam and asks placement's alias rule, the one
the rename applies a moment later: the new spelling counts as the item
itself where the folder lists no such name, the item's own name is the
only one matching it ignoring case, and type, size and time agree.

A paste's top-level case variants use the same rule, so on a
case-insensitive server behind sshfs a later spelling that leads to the
item saved earlier is numbered as an alias instead of failing; anything
else at the name still keeps it taken.

* feat(operations): tell reused inode numbers apart by file handle where no birth time exists

NFS and ext2/3/4 hand a freed inode number straight to the next file.
Where a stat reports no birth time (or a zero one) on those mounts, the
stat now also reads the entry's file handle with name_to_handle_at, by
the same folder and name or on the held descriptor, and keeps a digest
of it in the identity. Unequal handles make two entries different under
the identity rule and in exact comparisons. Lab block 2 (P6) measured
the handle change on every reused fileid on NFSv3 and on NFSv4.2 over a
backend without birth times (198/198 on ext4 and ext3 exports), the
handle staying stable across renames and moves, at no extra RPC.

So a Replace without Trash on NFSv3 no longer removes a file another
client put at the target's name that got the old number, and Trash
matching no longer brings back such a file instead. FUSE handles change
once an entry is evicted, so they are never used, and exFAT and cifs
give none.

* fix(operations): set originals aside under their own names

Replace without Trash, archive Replace and the case-only rename now move
an original into a fresh .strata-originals-<uuid>/ folder under its own
name, so Restore never has to ask what it was called. The move is a plain
rename plus an identity check: nothing else knows the folder, and the
placement ladder's link and reserved-name rungs left states there that a
restore takes for an original (lab block 5). Merge's set-aside into its
own mirror folders uses the same rename. Putting back goes through the
ladder, and the folder is removed through the leftover-aware rmdir.

Linux lets a folder change parent only when the user may write to it, so
a read-only folder its owner can open is made writable to them for the
instant of each move into or out of the originals folder, and its mode is
put back at once.

A replacing move on one filesystem whose original cannot be removed
afterwards no longer fails the item: the source already sits at the
target, so the move completes with its undo record and reports the
original kept in its folder (#1615 follow-up F11). Messages name the
folder and the item's own name rather than a flat hidden file.

Where the device barrier fsyncs both the folder and the filesystem, it
now fsyncs the folder before syncfs as well as after it, and ntfs3 gets
that pair too: ntfs3's syncfs reported success for renames a lost device
never received, while FAT's writes the copy back without flushing the
device's cache, which only the later folder fsync does.

* fix(operations): exchange through the originals folder so stages hold only copies

Replace and archive Replace on filesystems known to exchange faithfully
first move the finished stage into a fresh .strata-originals-<uuid>/
folder under the target's name, then exchange it with the target. The
original therefore ends in that folder under its own name, and before the
exchange the folder holds a complete copy, so a crash leaves both items
and never an original under a stage name.

Where the mount refuses the exchange, the copy goes back to its stage
name before the original is set aside; the refusal is still learned per
mount, and exchange is still never tried off the allow-list (exfat-fuse
turns it into an overwrite). A read-only copy or original folder, which
cannot change parent, takes the set-aside path the same way without
teaching the mount anything. The stage is checked by the mount's identity
rule before it moves, so a vfat stage renumbered after its close is still
exchanged.

Replace and archive stages use .strata-copy- like every other stage, so
that prefix always means an incomplete copy; .strata-replacement- and
.strata-compression- remain only as legacy names.

* test(e2e): audit main-thread file calls and log UI stalls

Runtime asserts only see calls that go through Strata's own seams. Two
opt-in tools now catch the rest, including GLib and GTK internals and
closes triggered by drops:

- STRATA_UI_STALL_MS starts a watchdog thread that posts an idle source
  to the main context every 100 ms. When the main loop misses it, the
  watchdog reads the UI thread's system call and wchan from /proc,
  resolves its path or descriptor, and logs where the thread is stuck.
  Without the variable no thread starts.
- scripts/trace-main-io.py runs E2E scenarios with the UI thread under
  strace, classifies each file call by path (user, settings, toolkit,
  unclassified) and reports the violations, optionally with Strata's
  stack frames. tests/e2e/main-io-allowlist.toml holds the documented
  exceptions and refuses user paths.

The pinned E2E runtime gains strace, so its image inputs change.

* fix(operations): find undo originals in their own mount's Trash without GVfs

* fix(operations): skip Trash items proven to be another when undoing a Delete, Replace or merge

* feat(browser): check visible folders that other writers can change

* fix(browser): keep a listing when a background re-list fails or falls short

* feat(browser): follow folders that a check finds gone or replaced

* feat(browser): confirm a coarse folder stamp once its window passes

* feat(operations): restore set-aside originals and remove stale probes

Add OperationProvider::recover, which puts back what an interrupted
operation left in a `.strata-originals-*` or `.strata-merge-*` folder. It
runs through the provider wrapper (the folder is fenced and its parent
registered as active), places each item back by the identity it just
read, never replacing: a taken name gets the next Keep Both number and is
reported as taken, and a name that already holds the item's own inode (a
hard link an interrupted link step left) loses only the hidden name. A
merge folder's mirrors are walked into their folders, a missing one is
made again, and each mirror and then the folder itself are removed
deepest first through remove_folder, only when empty.

Other programs' leftovers are never restored, renamed or removed: names
the mount's silly-rename family makes are skipped, a folder holding
nothing else is kept and reported as still open, and a container held
only by them stays with its holder named. On an ntfs3 volume mounted
read-only, as after an unplug, the error says the drive may need a check.

Add OperationProvider::sweep_probes for listed probe names: once per name
per session, in the background lane of the mount, an empty probe file or
folder over an hour old is removed; every refusal or failed stat is
silent.

* fix(operations): leave other programs' leftovers out of copies and moves

A copy or move of a folder copied a `.nfs…`, `.fuse_hidden…` or
`.__smbfile_silly…` file found in it like any other file: the destination
kept a copy of a deleted file under a hidden name that never goes, and a
move then tried to remove that leftover at its source. The source walk now
leaves out the names the source mount's own silly-rename family makes, as
recursive deletes already do. A move keeps the source folder only while
the leftover stays, after the mount's wait, and reports the folder as
still open.

* fix(operations): finish a staged Replace whose original cannot be removed

A copy that replaced an item without Trash, or a move from another mount,
failed the item when the original it set aside could not be deleted once
the copy was on disk, although the replacement was in place: a move then
kept its source and left no undo record. Like a replacing move within one
mount, the item now completes: the original stays in its originals folder
and is reported as not removed, and a move goes on to delete its source
and records its undo. Archive Replace, which has no report to carry it,
still fails with that message.

* feat(ui): pause checks for hidden windows and tabs and in power-saver mode

Browser windows and the file chooser follow their window's focus, mapping
and toplevel state: the active tab checks on the focused interval while
the window is focused, on the unfocused one while it is only visible, and
not at all while it is hidden, minimized or suspended; inactive tabs never
check. In power-saver mode focused checks slow down fourfold and unfocused
windows stop checking. The Auto-refresh timer is removed; the checks of
network folders replace it.

* feat(ui): check network folders when the window regains focus

When a window or tab becomes the focused one again, the folders it shows
that other writers can change are checked at once instead of at the next
interval. After 30 seconds or more away, counted on a clock that keeps
running while the computer sleeps, they are also re-read, so sizes and
dates of files edited elsewhere update without F5.

A re-list that is owed stays owed until it can run: it waits for an open
inline edit or submitted rename, for an operation in the folder, and for
the duty cycle (no sooner than ten times the last listing's duration after
it ended), one folder per mount at a time. A focus check made before that
point does not bring the next check forward.

* feat(settings): add a switch for watching network folders

"Watch network folders", on by default, replaces "Auto-refresh folder"
under Settings > General > Performance. Off, folders on mounts that other
computers or programs change are no longer checked or re-read, so other
computers' changes show after a refresh; folders with a change monitor
still show this computer's changes, and local folders without a monitor
are still checked. Every browser and the chooser bind it at construction.
A saved Auto-refresh interval is ignored and dropped on the next save.

* test(window): expect the rename prompt to refuse a hard link's name

Since the rename prompt asks placement's alias rule (df3b0001), a name
the folder lists is taken even when it is another link to the same
file, so the prompt refuses it with the usual "already exists" reason
before anything changes, as other typed names are refused. Case
variants a mount numbers separately still pass to the rename, which
the placement alias rows cover.

* fix(settings): save and reload custom actions through the settings writer

The custom action store read the actions folder, resolved interpreters on
PATH and wrote action files on the UI thread: every context menu, 10xer
action chord and Settings page rebuilt the registry and read the whole
folder synchronously, and saves, imports, exports and deletes ran under a
named UI-thread exception.

The actions folder is now read and written only by jobs on the settings
writer. One registry lives for the process; asking for it shows the
actions as last read and starts a background re-read unless one is still
waiting, and each window warms it when it opens. Programs and
interpreters are looked up, an imported folder read and an exported
folder written on a separate thread, admitted through the mount's lane,
so a server that stops answering never holds up settings saves. Saves
read the folder back in the same job, answers are adopted in the order
they were queued, and the Settings page reacts when they land. A toggle
flips the stored definition in its own job, a save never recreates a
deleted action, and Duplicate picks its copy's id in the job that
creates it. Choosing an action from a menu or the chord reads its
definition again first and refuses one that changed or was removed.
Exception::ActionStore is gone and the local store asserts that it runs
off the UI thread.

* fix(settings): watch settings, theme and Omarchy files from the monitors worker

The monitors for settings.toml and folder-views.toml, the custom themes
folder and the Omarchy theme folders were created, cancelled and released
on the UI thread, inside GLib's inotify lock, which a creation stuck on a
dead mount holds.

They now go through the serial monitors worker that already owns every
folder monitor: the seam's watch hook takes a file or a folder, creation is
admitted through the mount's lane, and release follows the same order as
folder monitors (handler disconnected on the UI thread, then the bare
monitor cancelled and dropped on the worker). Once each monitor is live,
what it watches is read again, so a change made while it was starting is
not missed; those re-reads apply only what changed. The Omarchy folders
are watched anew only when their set changes, and the custom themes
folder keeps its watch across saves.

* test(media): isolate the preview resume test

reopening_resumes_where_the_preview_closed called gtk::init in the shared
test process, so it failed whenever another test there held the default
main context, as the local preview tests do. It now runs in its own
process through test_support::gtk_test, like the other media tests.

* test(window): wait for the queued settings save before reopening preferences

The overlay focus fixture turned 10xer mode off and then built a window
whose preference manager reads settings.toml at once. The save runs on the
settings writer, so the window sometimes started from the seeded file with
10xer mode still on, and the accelerator test failed with "FolderJump
reached the owner". The fixture now lets the writer finish first.

* feat(browser): detect what interrupted operations left in a folder

Classify each committed column's listed names with the hidden-name table,
cached with the column's entry indexes, so detection costs no disk access
on the UI thread. A column surfaces leftovers only in an interactive
browser, on a native or GVfs folder that is neither Trash nor Recent, and
only while no operation of this process changes or writes into that
folder. A paste registers its destination by location, so GVfs folders
count too, and a merge counts for every folder below its targets, where
it stages copies. The registry now tells observers when an operation
ends, so a leftover an operation kept appears as soon as it stops.

The browser reports each change as LeftoversChanged, announcing the first
time this session a folder holding set-aside originals shows them, and
hands listed probe names to the provider's background sweep. Other
programs' silly-rename names never classify.

* feat(browser): offer to restore what an interrupted operation left

A pane-header warning button, built like the other header actions, shows
while a column surfaces leftovers in Columns, List and Icons. It opens a
review on the modal shell: one row per leftover with what it may hold,
its date and its actions. A worker stats each row and lists what
originals and merge folders hold, up to 1,000 names, skipping other
programs' silly-rename files and naming a container that holds only
them as still open.

Restore puts a folder of set-aside originals back through the
provider's recover and selects what returned; an original whose name is
unknown is renamed to a numbered "Recovered item" and opens the inline
name editor. Show reveals the item. Incomplete copies offer Delete…,
which goes through the usual confirmed Delete, re-reading the item
then. Each change refuses while an operation runs in the folder. When
hidden files are shown, a leftover row's context menu offers the same
Restore. The first time this session a folder holding set-aside
originals is opened, a dock card offers Review.

* feat(browser): say when a network folder stops answering

When a folder's mount has made no progress for 10 s, show "Not
responding. This list may be out of date." above its listing in every
view mode, and clear it once the mount answers. The last listing stays.

The browser follows each column's responsiveness through the file
source without I/O: on check answers, listing ends and presence
changes, when the mount lanes see any request go 2 s without progress
(a paste probe, a monitor creation or another window's load included),
and on a one-second poll that runs only while a visible column is
loading, being checked or on a mount that is not answering. The lanes
keep their one timer only while a request may still stall. Error pages
get no notice. FileSource::answering becomes responsiveness, so callers
can tell a stalled mount from one that stopped responding.

* fix(browser): keep rows on F5 when a GVfs backend stops answering

Interactive GVfs folder loads now take their backend's scheme and
authority lane, as background re-lists already did, and report each
answer as progress, opening the enumerator included. A refresh on a
backend that stopped answering is refused at once with the existing
timed-out failure, and the browser keeps the rows, as it does for
native mounts.

A GIO call dropped while it waits, such as a load the user navigated
away from, leaves its lane without marking the backend stalled: its
answer would never be seen, and nothing else would clear the mark.

The file source now reports the lane of every location it lists
through GIO, Trash included, so the not-responding notice covers those
folders. A refresh made while a mount is not answering that runs out of
time keeps a complete previous listing instead of replacing it with a
shorter one.

* feat(browser): re-list folders whose mount never moves their stamp

Some mounts never move a folder's stamp when its contents change: 9p
with cache=loose, object-store FUSE folders, servers that keep folder
times. When a complete listing differs from the previous one of the
same folder while the stamp stayed equal and was not read inside its
coarse window, the mount is marked for the session. Checked folders
there are re-listed on the unfocused interval instead of being
stat-checked, through the per-mount re-list queue, so the duty cycle
and lane rule still apply, and re-lists slow down while the listing
stays the same.

A stamp that moved while the names stayed (Samba directory leases) is
not evidence, and the names listed under it are not either until they
change: a lease that lapses later shows new names under that same
stamp. Mounts whose daemon caches names and stamps apart (sshfs) are
never marked.

* docs(operations): document released files and still-open leftovers

Describe what step 4 built: the registry of Strata's own reads and running
operations, the release every operation, Empty Trash and unmount make
before changing files, the wait for a sandbox's namespace after every
bubblewrap exit, the leftover each mount family keeps for a file unlinked
while open, the bounded wait before a folder holding only leftovers fails,
how the program still holding a file is named, the SMB folder-rename retry
and its unverified premise, and the limits that remain (SMB unlink EIO from
another client, pre-6.17 SMB, leftovers nobody holds). Lab figures from
block 1 replace the design's estimates.

* docs: describe the UI-thread rule and how it is checked

Replace the guarantee that still listed synchronous archive-name, undo and
redo checks with the rule step 5 built: no file call on the interface
thread, with its named exceptions (the reads that build the first window,
GLib's main-thread-only volume monitor, GIO application lookups, the exit
flush). Add an "Unresponsive mounts" section: what moved to workers, the
request lanes and what counts as progress, the one-worker bound, what the
lab saw dead servers do (no timely error, unkillable calls, DONT_SYNC by
path still blocking, per-process NFS caches, the unix volume monitor's
start-up hang), and the shared inotify lock that pauses every monitor
while one creation is stuck. Point the architecture doc at the shared
pieces and the audit, and update restored tabs, the default folder and
Extract To into a write-only folder.

* docs(filesystem-compatibility): describe identity per mount

Add an "Identity" section for what step 6 built: the one rule per mount
and the order it weighs device, type, file handle, birth time, inode and
attributes; a table of what proves an item on each mount family; file
handles on NFS and ext without births; O_PATH holds where nothing else
proves an item, never on NFS; the FUSE link-probe upgrade; SMB's server
numbers while serverino shows, made-up creation times and the change-time
check after a switch-off; the records kept after an operation; and what
each site does with an unproven answer. The limits from the lab stay:
reuse on ntfs-3g, births within one 10 ms tick (including following a
renamed vfat folder), no SMB copy change-time check after a switch-off,
no swap detection under the NFS Trash check, and unmeasured subtree_check
handles. Scattered SMB and handle paragraphs now point to it, and the
architecture doc names the rule, Pinned and ItemIdentity.

* docs(files): document how Strata notices changes made elsewhere

Add a "Changes made elsewhere" section for what step 7 built: which open
folders are checked (outside writers, or no live monitor) and by which
mount; the forced stamp every load starts with; what a check does with
each answer; re-lists that keep the rows; the skip under operations and
the one background job per mount; the cadence (3 s focused, 15 s
unfocused, none while hidden, power saver, slowdown, duty cycle, focus
check and the 30 s re-read); coarse-stamp confirmation and sshfs's
dcache_timeout; mounts whose stamp never moves; block 3's cost per check;
and the limits, Samba directory leases and nohandlecache first. The
unresponsive-mounts section gains the kept rows on F5 and the "Not
responding" notice, and the architecture, keyboard, preferences and
README pages point to the checks.

* docs(operations): describe leftovers after a crash or unplug

Describe what step 8 built: originals set aside under their own names in
a .strata-originals-<id> folder by a plain rename, the exchange through
that folder with its fallback, stages that only ever hold copies, the
owner-write retry for read-only folders and the refusal where the mode
cannot change, the completed move that reports an original it could not
remove, and the folder fsync before and after syncfs on FAT, ntfs3,
ntfs-3g and exfat-fuse. Add a "Leftovers after a crash or unplug" section
(what each crash window leaves, how names are recognised and when they
are held back, the pane button, dock card and review, Restore without
replacing, Delete for incomplete copies, the stale-probe sweep and its
limits) with block 5's kill, unplug and per-Replace request figures, and
rewrite the hidden-names table with the legacy forms. The archives and
architecture docs follow.

* fix(operations): complete a compression whose replaced original cannot be removed

Compressing over an existing archive without Trash fa…
@l0gicgate
l0gicgate deleted the fix/1530-filesystem-compat branch October 25, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trying to move some folders generates a OS error 22

2 participants