Skip to content

Conversation

@zhijian-pro
Copy link
Contributor

…rom internal files

Copy link
Contributor

Copilot AI left a 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.

@zhijian-pro zhijian-pro marked this pull request as draft February 4, 2026 10:05
Copy link
Contributor

Copilot AI left a 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.

@zhijian-pro zhijian-pro marked this pull request as ready for review February 5, 2026 04:52
@jiefenghuang jiefenghuang changed the title cmd/sync: add the jfs specific prefix to distinguish business files f… cmd/sync: change tmp file name Feb 5, 2026
@zhijian-pro zhijian-pro merged commit 2dd3f31 into main Feb 5, 2026
42 checks passed
@zhijian-pro zhijian-pro deleted the sync-prefix branch February 5, 2026 06:33
zhijian-pro added a commit that referenced this pull request Feb 5, 2026
(cherry picked from commit 2dd3f31)

# Conflicts:
#	pkg/object/cifs.go
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.

2 participants