Repository navigation
fix(copy): copy folders to rclone mounts without a staged rename - #2327
Merged
Merged
Conversation
A folder copied to an rclone mount was built in a hidden .strata-copy-* stage and renamed over an empty placeholder at its final name. rclone does not rename a folder over an existing one: it moves it file by file, and fails with EIO while files it has yet to upload are still in the stage. The copy then failed as unconfirmed, with empty subfolders at the destination and the files left in the hidden stage. On FUSE daemons over remote storage, which is every FUSE mount but fuseblk devices, sshfs and the daemons that layer or encrypt local storage: - a new folder is made under its final name and filled there, as on mounts where no step can place a folder, also for folders new to a merge; - the placement routine no longer renames a folder over a placeholder. Once RENAME_NOREPLACE is known to be missing it renames the folder to a name just found free, so moves, renames, extraction and Replace give the daemon a single rename. Refs #2203
#2304 updated the Hungarian installer strings in install.sh but not in data/locales/installer.json, which they are generated from, so the installer translation check failed on main and every pull request.
wmfeht
pushed a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 17, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RQ23AANQZgboBLsRG8h5jC
This was referenced Nov 17, 2026
wmfeht
added a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 29, 2026
Sync lgse/strata#2327–#2544: rclone folder copies, desktop window-button defaults, GVfs mount dedupe, launcher icon, KDE MTP warning, entry tooltips and footer names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Copying a folder into an rclone mount failed with "The result could not be confirmed", left only empty subfolders at the destination, and left every file in a hidden
.strata-copy-*folder.Cause. The mount rejects
RENAME_NOREPLACEand has no hard links, so the staged folder was published by step 3 of the placement routine: make an empty placeholder at the final name, then rename the stage over it. rclone does not rename a folder over an existing one. It logsCan't DirMove - falling back to file moves, makes the subfolders at the new name, moves only the files its storage already holds, and returnsEIO(RenameDir rmdir: directory not empty) while files still waiting to upload are in the stage. It also merges into a folder that is not empty and replaces same-named files, so the placeholder never gave the protection step 3 counts on there.Fix. On FUSE daemons over remote storage:
RENAME_NOREPLACEis known to be missing, renames to a name just found free (the existing folder check of step 5, as for names ntfs-3g would cut). Moves, renames, extraction and Replace on the mount now give the daemon one rename, which rclone passes to its storage as a single move, instead of a file-by-file move.Scope, for review. "FUSE daemon over remote storage" is every FUSE mount except
fuseblkdevices, sshfs (whose server renames the folder, and which the lab covers) and the local overlays already listed inis_local_fuse_overlay. Only rclone was tested; s3fs, gvfsd-fuse and unknownfuse.*daemons get the same treatment because nothing tells Strata how they rename a filled folder. The cost is that a folder being copied there is visible under its final name while it fills. Narrowing this tofuse.rcloneis a one-line change inMountType::renames_folders_in_steps.Not changed: files copied on their own are still staged (that works on rclone), there is no new setting, and the "could not be confirmed" message is as before. Stages left by earlier failed attempts still show in the folder's leftover review.
docs/filesystem-compatibility.mddescribes the new rule under "FUSE daemons over remote storage".Also, separately:
data/locales/installer.jsontakes the Hungarian installer strings that #2304 wrote only intoinstall.sh. They were out of sync, which failed the installer translation check onmainand on every pull request.Visual evidence
N/A. No interface change; the fix is in the copy engine and the placement routine.
How to test
A throwaway rclone mount over a local WebDAV server, throttled so uploads are still pending when the copy ends, reproduces the report without a cloud account:
mkdir -p /tmp/lab/{remote,cache,mnt} rclone serve webdav /tmp/lab/remote --addr 127.0.0.1:18203 & rclone mount ":webdav,url='http://127.0.0.1:18203',vendor=rclone:" /tmp/lab/mnt \ --vfs-cache-mode full --cache-dir /tmp/lab/cache --tpslimit 6 \ -v --log-file /tmp/lab/rclone.log &/tmp/lab/mnt.fusermount3 -u /tmp/lab/mnt, then stoprclone serve.Expected result: The folder appears with every file, no
.strata-copy-*folder is left beside it, and the rename succeeds at once./tmp/lab/rclone.loghas noCan't DirMoveorDir.Rename errorline, and after the uploads finish/tmp/lab/remoteholds the complete folder under its new name. Onmain, step 2 fails after about 25 s with the error above, the destination holds only empty subfolders, and the files stay in the hidden stage.Related issue
Closes #2203