Subversion Repositories HelenOS

Rev

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

Rev 2927 Rev 4341
Line 96... Line 96...
96
    if (info->name[i] != '\0') {
96
    if (info->name[i] != '\0') {
97
        dprintf("The name is not properly NULL-terminated.\n");
97
        dprintf("The name is not properly NULL-terminated.\n");
98
        return false;
98
        return false;
99
    }
99
    }
100
   
100
   
101
 
-
 
102
    /*
-
 
103
     * Check if the FS implements mandatory VFS operations.
-
 
104
     */
-
 
105
    if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_LOOKUP)] != VFS_OP_DEFINED) {
-
 
106
        dprintf("Operation VFS_LOOKUP not defined by the client.\n");
-
 
107
        return false;
-
 
108
    }
-
 
109
    if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_READ)] != VFS_OP_DEFINED) {
-
 
110
        dprintf("Operation VFS_READ not defined by the client.\n");
-
 
111
        return false;
-
 
112
    }
-
 
113
   
-
 
114
    /*
-
 
115
     * Check if each operation is either not defined, defined or default.
-
 
116
     */
-
 
117
    for (i = VFS_FIRST; i < VFS_LAST_CLNT; i++) {
-
 
118
        if ((info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_NULL) &&
-
 
119
            (info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_DEFAULT) &&
-
 
120
            (info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_DEFINED)) {
-
 
121
            dprintf("Operation info not understood.\n");
-
 
122
            return false;
-
 
123
        }
-
 
124
    }
-
 
125
    return true;
101
    return true;
126
}
102
}
127
 
103
 
128
/** VFS_REGISTER protocol function.
104
/** VFS_REGISTER protocol function.
129
 *
105
 *