Merge pull request #4712 from mysterywolf/devfs

[dfs] 将文件系统默认最大数量以及最大类型改为4
This commit is contained in:
Bernard Xiong 2021-05-21 21:27:42 +08:00 committed by GitHub
commit 126af8e43c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 11 deletions

View File

@ -14,13 +14,11 @@ if RT_USING_DFS
config DFS_FILESYSTEMS_MAX config DFS_FILESYSTEMS_MAX
int "The maximal number of mounted file system" int "The maximal number of mounted file system"
default 4 if RT_USING_DFS_NFS default 4
default 2
config DFS_FILESYSTEM_TYPES_MAX config DFS_FILESYSTEM_TYPES_MAX
int "The maximal number of file system type" int "The maximal number of file system type"
default 4 if RT_USING_DFS_NFS default 4
default 2
config DFS_FD_MAX config DFS_FD_MAX
int "The maximal number of opened files" int "The maximal number of opened files"

View File

@ -313,15 +313,13 @@ static const struct dfs_filesystem_ops _device_fs =
"devfs", "devfs",
DFS_FS_FLAG_DEFAULT, DFS_FS_FLAG_DEFAULT,
&_device_fops, &_device_fops,
dfs_device_fs_mount, dfs_device_fs_mount,
RT_NULL, RT_NULL, /*unmount*/
RT_NULL, RT_NULL, /*mkfs*/
RT_NULL, RT_NULL, /*statfs*/
RT_NULL, /*unlink*/
RT_NULL,
dfs_device_fs_stat, dfs_device_fs_stat,
RT_NULL, RT_NULL, /*rename*/
}; };
int devfs_init(void) int devfs_init(void)