Changes in uspace/srv/vfs/vfs_register.c [286286c:15f3c3f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_register.c
r286286c r15f3c3f 154 154 * Check for duplicit registrations. 155 155 */ 156 if (fs_name_to_handle(fs_info->vfs_info.instance, 157 fs_info->vfs_info.name, false)) { 156 if (fs_name_to_handle(fs_info->vfs_info.name, false)) { 158 157 /* 159 158 * We already register a fs like this. … … 298 297 * 299 298 */ 300 fs_handle_t fs_name_to_handle( unsigned int instance,char *name, bool lock)299 fs_handle_t fs_name_to_handle(char *name, bool lock) 301 300 { 302 301 int handle = 0; … … 307 306 list_foreach(fs_list, cur) { 308 307 fs_info_t *fs = list_get_instance(cur, fs_info_t, fs_link); 309 if (str_cmp(fs->vfs_info.name, name) == 0 && 310 instance == fs->vfs_info.instance) { 308 if (str_cmp(fs->vfs_info.name, name) == 0) { 311 309 handle = fs->fs_handle; 312 310 break;
Note:
See TracChangeset
for help on using the changeset viewer.