Changeset 4863e50b in mainline for uspace/srv/vfs/vfs_register.c


Ignore:
Timestamp:
2009-01-31T23:15:13Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4a10b63
Parents:
516ff92
Message:

Nuke VFS operations structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_register.c

    r516ff92 r4863e50b  
    9999        }
    100100       
    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         }
    125101        return true;
    126102}
Note: See TracChangeset for help on using the changeset viewer.