MCPcopy Create free account
hub / github.com/asterinas/vostd / clone_mount_node

Method clone_mount_node

kernel/src/fs/path/mount.rs:106–115  ·  view source on GitHub ↗

Clones a mount node with the an root `Dentry_`. The new mount node will have the same fs as the original one and have no parent and children. We should set the parent and children manually.

(&self, root_dentry: &Arc<Dentry_>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

clone_mount_node_treeMethod · 0.80

Calls 2

newFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected