Changeset cad9c72 in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2008-01-08T21:58:58Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb27ce5a
Parents:
861e7d1
Message:

Make a distinction between VFS operations that are common to VFS and FS
implementations, operations that are VFS only and operations that are FS
implementations only.

File:
1 edited

Legend:

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

    r861e7d1 rcad9c72  
    746746         * Check if the FS implements mandatory VFS operations.
    747747         */
    748         if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_REGISTER)] != VFS_OP_DEFINED) {
    749                 dprintf("Operation VFS_REGISTER not defined by the client.\n");
    750                 return false;
    751         }
    752         if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_MOUNT)] != VFS_OP_DEFINED) {
    753                 dprintf("Operation VFS_MOUNT not defined by the client.\n");
    754                 return false;
    755         }
    756         if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_UNMOUNT)] != VFS_OP_DEFINED) {
    757                 dprintf("Operation VFS_UNMOUNT not defined by the client.\n");
    758                 return false;
    759         }
    760748        if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_LOOKUP)] != VFS_OP_DEFINED) {
    761749                dprintf("Operation VFS_LOOKUP not defined by the client.\n");
     
    778766         * Check if each operation is either not defined, defined or default.
    779767         */
    780         for (i = VFS_FIRST; i < VFS_LAST; i++) {
     768        for (i = VFS_FIRST; i < VFS_LAST_CLNT; i++) {
    781769                if ((info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_NULL) &&
    782770                    (info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_DEFAULT) &&
Note: See TracChangeset for help on using the changeset viewer.