feat(vfs): implement pivot_root for mount namespaces#1810
feat(vfs): implement pivot_root for mount namespaces#1810sparkzky wants to merge 2 commits intoDragonOS-Community:masterfrom
Conversation
Add pivot_root(2) support for mount namespaces, including mount list path rewrites, namespace-root handling, and rebinding of process fs root and cwd after namespace switches. Also fix mount-root path resolution and umount path lookup for moved mount trees, and add C unit tests covering pivot_root behavior. Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
|
@claude review |
|
Claude finished @sparkzky's task in 9m 58s —— View job Claude's PR Review I've reviewed the Overall Assessment
Key Observations1. Propagation Check ScopeIn 2. Unsafe Pointer Casts for MutabilityIn
Suggestion: Move 3. Root Mount Self‑Mountpoint CheckThe code requires 4. Path Rewriting LogicThe 5. Task Iteration in
|
|
测例加到dunitest下面,这个会自动运行。 |
Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
Add pivot_root(2) support for mount namespaces, including mount list
path rewrites, namespace-root handling, and rebinding of process fs root
and cwd after namespace switches.
Also fix mount-root path resolution and umount path lookup for moved
mount trees, and add C unit tests covering pivot_root behavior.