feat(container): runcell support#1742
feat(container): runcell support#1742sparkzky wants to merge 5 commits intoDragonOS-Community:masterfrom
Conversation
Implement proper mknod syscall support in DevFS and TmpFS by adding logic to create character devices, block devices, and FIFO pipes based on the mode parameter. - DevFS: Add mknod method to create device nodes - TmpFS: Enhance mknod to correctly set file type and device number - Remove ENOSYS error for block/char device creation in TmpFS Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
- 为MountFS添加bind_target_root字段以支持容器rootfs的bind mount - 修复pivot_root中MountFS查找逻辑,增加容器路径前缀匹配 - 增强do_bind_mount以设置bind_target_root - 改进do_umount2以支持pivot_root后的旧根卸载 Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
|
@claude review |
|
To use Codex here, create a Codex account and connect to github. |
|
@claude review |
|
Claude finished @sparkzky's task in 4m 48s —— View job PR Review: feat(container): runcell supportReviewer: Claude (deepseek-reasoner) Status: ✅ Review completed SummaryThis PR implements container support through Positive Aspects
Concerns and Issues1. Hardcoded Container Paths
2. Unsafe Operations
3. bind_target_root as Workaround
4. Error Handling Edge Cases
5. Magic Numbers and Limits
6. Incomplete Propagation Handling
Security Considerations
Testing RecommendationsGiven the complexity of container filesystem operations:
Code Quality
Final AssessmentThis PR represents significant progress toward container support. The core functionality appears correct for basic use cases. The main issues are the hardcoded container paths and unsafe operations that should be addressed before merging. Recommendation: Approve with requested changes for items 1-2 above. Items 3-6 are architectural considerations that can be addressed in follow-up PRs but should be documented. Review completed. The implementation enables container support but needs minor fixes for production readiness. |
Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

补充pivot_root等支持runcell运行的机制,初步支持容器运行

ps:现在主线运行runcell会报错,因此此分支暂时不会合并主线