Function report |
Source Code:fs\namespace.c |
Create Date:2022-07-28 20:09:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mnt_already_visible
Proto:static bool mnt_already_visible(struct mnt_namespace *ns, const struct super_block *sb, int *new_mnt_flags)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct mnt_namespace * | ns | |
const struct super_block * | sb | |
int * | new_mnt_flags |
3841 | new_flags = new_mnt_flags |
3843 | bool visible = false |
3845 | lock for reading |
3856 | If root of the mounted tree != s_root Then Continue |
3863 | If sb_rdonly( pointer to superblock ) Then mnt_flags |= MNT_LOCK_READONLY |
3869 | If mnt_flags & MNT_LOCK_READONLY && Not (new_flags & does the user want this to be r/o? ) Then Continue |
3872 | If mnt_flags & MNT_LOCK_ATIME && (mnt_flags & MNT_ATIME_MASK) != (new_flags & MNT_ATIME_MASK) Then Continue |
3883 | If Not (mnt_flags & MNT_LOCKED) Then Continue |
3886 | If Not is_empty_dir_inode(inode) Then Go to next |
3891 | new_mnt_flags |= mnt_flags & (MNT_LOCK_READONLY | MNT_LOCK_ATIME) |
3892 | visible = true |
3893 | Go to found |
3894 | next : |
3896 | found : |
3897 | lease a read lock |
3898 | Return visible |
Name | Describe |
---|---|
mount_too_revealing |
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 |