Conversation
WalkthroughAdds an unchecked accessor Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Tip 🧪 Unit Test Generation v2 is now available!We have significantly improved our unit test generation capabilities. To enable: Add this to your reviews:
finishing_touches:
unit_tests:
enabled: trueTry it out by using the Have feedback? Share your thoughts on our Discord thread! Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR adds an unchecked variant for obtaining a DFS tree reference, allowing DFS operations on trees that may not be marked as DFS roots (such as IPC$ shares on DFS namespaces).
Changes:
- Added
as_dfs_tree_unchecked()method that bypasses DFS root validation - Accidentally corrupted the shebang line in a shell script (critical bug)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| crates/smb/src/tree.rs | Adds new as_dfs_tree_unchecked() method with appropriate documentation warning users about potential errors |
| crates/smb-transport/scripts/ksmbd.sh | Contains a critical bug where a git command was accidentally prepended to the shebang line |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@crates/smb-transport/scripts/ksmbd.sh`:
- Line 1: Replace the accidental git command that appears at the top of the
script with the proper shebang so the script can execute correctly: change the
first line containing "git push --set-upstream origin
161-add-unchecked-dfs-root#!/bin/bash" to a single shebang line "#!/bin/bash" at
the very top of the file (ksmbd.sh), ensure there are no stray git commands or
text before the shebang, and verify the script file mode is executable.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@afiffon Should I worry about the failed build? |
Yep, since we'd like to have the changes merged. If you may fix -time = { version = "0.3.37", features = ["macros"] }
+time = { version = "=0.3.45", features = ["macros"] }Hopefully no more package versions are problematic. Thanks. |
|
@afiffon Looks like the lockfile removal in the build step leaves us with some crates that are not compatible with rustc 1.85. Is there a reason the lockfile is being removed? I'm confused by the comment in the workflow, but this can't merge unless we set the crate version or keep the lockfile. |
Head branch was pushed to by a user without write access
|
@afiffon Can you please approve the workflow when you get the chance. |
Summary by CodeRabbit
New Features
Chores
✏️ Tip: You can customize this high-level summary in your review settings.
Related to issue #161