-
-
Notifications
You must be signed in to change notification settings - Fork 180
fix(fs): 修复 sys_rename 逻辑并支持 RENAME_NOREPLACE #1393
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
Merged
fslongjin
merged 17 commits into
DragonOS-Community:master
from
kaleidoscope416:fix_rename
Nov 24, 2025
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f904d19
加入判断祖先关系的函数;正确覆盖重命名相同名字情况;正确覆盖目标目录为非空目录的情况
kaleidoscope416 97ee20a
rename替换时,删除路径的文件
kaleidoscope416 42f17a2
拒绝文件类型不同的覆盖
kaleidoscope416 416d420
在remove目录项前加入截断
kaleidoscope416 0446e0f
使覆盖逻辑正确
kaleidoscope416 76341b2
拦截源或目标的末尾路径分量是 "." 或 ".."的情况
kaleidoscope416 6c057ec
fmt, 增加测试
kaleidoscope416 b050443
fmt
kaleidoscope416 6d9a70c
修改blocklist
kaleidoscope416 f0e3409
copilot advise & clippy
kaleidoscope416 94cd876
continue copilot advise
kaleidoscope416 66fb8c4
clippy
kaleidoscope416 ac64bb6
fix
kaleidoscope416 3f17317
fmt
kaleidoscope416 ce10794
fix test
kaleidoscope416 c144a34
Merge branch 'master' into fix_rename
kaleidoscope416 762bfc3
1
fslongjin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Calling
.unwrap()onnew_inodewill panic if it contains anErrvalue. The parameter type isResult<Arc<LockedFATInode>, SystemError>, so when the target doesn't exist, this will be anErr.Use pattern matching or safe handling:
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.
和上面一样