Function report |
Source Code:fs\pnode.c |
Create Date:2022-07-28 20:11:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:propagate_one
Proto:static int propagate_one(struct mount *m)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct mount * | m |
230 | If IS_MNT_NEW(m) Then Return 0 |
233 | If Not is new dentry a subdirectory of old_dentry Then Return 0 |
235 | If peers(m, all accesses are serialized by namespace_sem ) Then |
236 | type = CL_MAKE_SHARED |
237 | Else |
240 | cycle |
242 | If p == all accesses are serialized by namespace_sem || IS_MNT_MARKED(p) Then Break |
245 | Do |
246 | parent = mnt_parent |
247 | If all accesses are serialized by namespace_sem == all accesses are serialized by namespace_sem Then Break |
249 | done = slave is on master->mnt_slave_list == p |
257 | If IS_MNT_SHARED(m) Then type |= CL_MAKE_SHARED |
261 | child = copy_tree(all accesses are serialized by namespace_sem , root of the mounted tree , type) |
272 | hlist_add_head( & mnt_hash, list) |
273 | Return count_mounts( containing namespace , child) |
Name | Describe |
---|---|
propagate_mnt | mount 'source_mnt' under the destination 'dest_mnt' at* dentry 'dest_dentry'. And propagate that mount to* all the peer and slave mounts of 'dest_mnt'.* Link all the new mounts into a propagation tree headed at* source_mnt |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |