Thanks to visit codestin.com
Credit goes to github.com

Skip to content

operations: don't merge DirMove over an existing directory - fixes #8253 - #9842

Open
ShravanthReddy wants to merge 1 commit into
rclone:masterfrom
ShravanthReddy:operations-dirmove-exists
Open

operations: don't merge DirMove over an existing directory - fixes #8253#9842
ShravanthReddy wants to merge 1 commit into
rclone:masterfrom
ShravanthReddy:operations-dirmove-exists

Conversation

@ShravanthReddy

Copy link
Copy Markdown

What does this change do?

Don't fall through to a file-move merge when DirMove hits an existing destination directory. POSIX rename-over-dir must fail; the merge was succeeding and breaking borg exclusive locks on rclone mount. Only ErrorCantDirMove still falls back (combine, #7661).

Linked issue

Fixes #8253

Checklist

  • This change is trivial OR it has been discussed and agreed in the linked issue.
  • I have read the contribution guidelines.
  • (If I used AI tools to help write this code) I have read and understood the AI-assisted contributions guidance, and I have tested and take ownership of this change myself.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • (Backend changes only) test_all passes for this backend and if submitting a new backend can provide a test account for the integration tester - see CONTRIBUTING.md.
  • This Pull Request is ready for review.

AI-assisted; FAIL then PASS verified locally (go test ./fs/operations -run TestDirMove, combine TestLocal|TestMemory|TestMixed). I take ownership of the change. Docs n/a.

…lone#8253

POSIX rename-over-dir must fail. DirMove treated ErrorDirExists as a
reason to fall through to a file-move merge, which succeeded and broke
borg exclusive locks on rclone mount. Only ErrorCantDirMove still falls
back (combine, rclone#7661).
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.

Recent version breaks borg backup repository locking using rclone mount

1 participant