Subversion Repositories HelenOS

Rev

Rev 2637 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2637 Rev 2641
Line 86... Line 86...
86
                    "characters.\n");
86
                    "characters.\n");
87
                return false;
87
                return false;
88
            }
88
            }
89
        }
89
        }
90
    }
90
    }
-
 
91
    /*
-
 
92
     * This check is not redundant. It ensures that the name is
-
 
93
     * NULL-terminated, even if FS_NAME_MAXLEN characters are used.
-
 
94
     */
-
 
95
    if (info->name[i] != '\0') {
-
 
96
        dprintf("The name is not properly NULL-terminated.\n");
-
 
97
        return false;
-
 
98
    }
91
   
99
   
92
 
100
 
93
    /*
101
    /*
94
     * Check if the FS implements mandatory VFS operations.
102
     * Check if the FS implements mandatory VFS operations.
95
     */
103
     */
Line 398... Line 406...
398
    if (lock)
406
    if (lock)
399
        futex_down(&fs_head_futex);
407
        futex_down(&fs_head_futex);
400
    link_t *cur;
408
    link_t *cur;
401
    for (cur = fs_head.next; cur != &fs_head; cur = cur->next) {
409
    for (cur = fs_head.next; cur != &fs_head; cur = cur->next) {
402
        fs_info_t *fs = list_get_instance(cur, fs_info_t, fs_link);
410
        fs_info_t *fs = list_get_instance(cur, fs_info_t, fs_link);
403
        if (strcmp(fs->vfs_info.name, name) == 0) { /* XXX: strncmp() */
411
        if (strncmp(fs->vfs_info.name, name,
-
 
412
            sizeof(fs->vfs_info.name)) == 0) {
404
            handle = fs->fs_handle;
413
            handle = fs->fs_handle;
405
            break;
414
            break;
406
        }
415
        }
407
    }
416
    }
408
    if (lock)
417
    if (lock)