Function report |
Source Code:fs\namespace.c |
Create Date:2022-07-28 20:09:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:reate a new mount for userspace and request it to be added into the* namespace's tree
Proto:static int do_new_mount(struct path *path, const char *fstype, int sb_flags, int mnt_flags, const char *name, void *data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct path * | path | |
const char * | fstype | |
int | sb_flags | |
int | mnt_flags | |
const char * | name | |
void * | data |
2786 | const char * subtype = NULL |
2787 | err = 0 |
2792 | type = get_fs_type(fstype) |
2796 | If fs_flags & FS_HAS_SUBTYPE Then |
2797 | subtype = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
2798 | If subtype Then |
2808 | put_filesystem(type) |
2812 | If subtype Then err = vfs_parse_fs_string(fc, "subtype", subtype, strlen - Find the length of a string*@s: The string to be sized) |
2815 | If Not err && name Then err = vfs_parse_fs_string(fc, "source", name, strlen - Find the length of a string*@s: The string to be sized) |
2817 | If Not err Then err = parse_monolithic_mount_data(fc, data) |
2819 | If Not err && Not mount_capable(fc) Then err = -EPERM |
2823 | If Not err Then err = Create a new mount using a superblock configuration and request it* be added to the namespace tree. |
2826 | put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of. |
2827 | Return err |
Name | Describe |
---|---|
do_mount | Flags is a 32-bit value that allows up to 31 non-fs dependent flags to* be given to the mount() call (ie: read-only, no-dev, no-suid etc) |
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 |