-
Notifications
You must be signed in to change notification settings - Fork 1.2k
cmd/sync: change tmp file name #6665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…rom internal files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a .jfs. prefix to temporary file names created during sync operations to better distinguish JuiceFS internal temporary files from business files being synced. The prefix is added to two storage backends used during sync operations.
Changes:
- Updated temporary file naming in the file storage backend from
.{name}.tmp{random}to.jfs.{name}.tmp{random} - Updated temporary file naming in the JuiceFS storage backend from
.{name}.tmp.{random}to.jfs.{name}.tmp.{random}
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pkg/object/file.go | Adds .jfs. prefix to temporary files created by the file storage backend during Put operations |
| cmd/object.go | Adds .jfs. prefix to temporary files created by the JuiceFS storage backend during Put operations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…rom internal files
7340b4f to
0beff42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
(cherry picked from commit 2dd3f31) # Conflicts: # pkg/object/cifs.go
…rom internal files