Function report |
Source Code:fs\namespace.c |
Create Date:2022-07-28 20:09:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:copy_tree
Proto:struct mount *copy_tree(struct mount *mnt, struct dentry *dentry, int flag)
Type:struct mount
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mount * | mnt | |
| struct dentry * | dentry | |
| int | flag |
| 1754 | If Not (flag & CL_COPY_UNBINDABLE) && IS_MNT_UNBINDABLE(mnt) Then Return ERR_PTR( - EINVAL) |
| 1757 | If Not (flag & CL_COPY_MNT_NS_FILE) && is_mnt_ns_file(dentry) Then Return ERR_PTR( - EINVAL) |
| 1764 | mnt_mountpoint = mnt_mountpoint |
| 1769 | If Not is new dentry a subdirectory of old_dentry Then Continue |
| 1773 | If Not (flag & CL_COPY_UNBINDABLE) && IS_MNT_UNBINDABLE(s) Then |
| 1784 | If Not (flag & CL_COPY_MNT_NS_FILE) && is_mnt_ns_file( root of the mounted tree ) Then |
| 1786 | s = skip_mnt_tree(s) |
| 1787 | Continue |
| 1789 | When p != mnt_parent cycle |
| 1790 | p = mnt_parent |
| 1791 | q = mnt_parent |
| 1795 | q = clone_mnt(p, root of the mounted tree , flag) |
| 1798 | lock_mount_hash() |
| 1801 | unlock_mount_hash() |
| 1804 | Return res |
| 1805 | out : |
| 1806 | If res Then |
| 1807 | lock_mount_hash() |
| 1809 | unlock_mount_hash() |
| 1811 | Return q |
| Name | Describe |
|---|---|
| collect_mounts | Caller should check returned pointer for errors |
| __do_loopback | |
| copy_mnt_ns | |
| propagate_one |
| 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 |