mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 04:27:07 +08:00
[DFS] fix the filesystem_operation_table issue.
This commit is contained in:
parent
f004ff16f7
commit
2a83353e5f
@ -22,6 +22,7 @@
|
|||||||
* 2005-02-22 Bernard The first version.
|
* 2005-02-22 Bernard The first version.
|
||||||
* 2010-06-30 Bernard Optimize for RT-Thread RTOS
|
* 2010-06-30 Bernard Optimize for RT-Thread RTOS
|
||||||
* 2011-03-12 Bernard fix the filesystem lookup issue.
|
* 2011-03-12 Bernard fix the filesystem lookup issue.
|
||||||
|
* 2017-11-30 Bernard fix the filesystem_operation_table issue.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
@ -252,7 +253,7 @@ int dfs_mount(const char *device_name,
|
|||||||
|
|
||||||
for (ops = &filesystem_operation_table[0];
|
for (ops = &filesystem_operation_table[0];
|
||||||
ops < &filesystem_operation_table[DFS_FILESYSTEM_TYPES_MAX]; ops++)
|
ops < &filesystem_operation_table[DFS_FILESYSTEM_TYPES_MAX]; ops++)
|
||||||
if ((ops != NULL) && (strcmp((*ops)->name, filesystemtype) == 0))
|
if ((*ops != NULL) && (strcmp((*ops)->name, filesystemtype) == 0))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
dfs_unlock();
|
dfs_unlock();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user