Changeset cad9c72 in mainline for uspace/srv/vfs/vfs.h


Ignore:
Timestamp:
2008-01-08T21:58:58Z (17 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.h

    r861e7d1 rcad9c72  
    4848
    4949typedef enum {
    50         VFS_REGISTER = VFS_FIRST,
    51         VFS_MOUNT,
    52         VFS_UNMOUNT,
    53         VFS_LOOKUP,
    54         VFS_OPEN,
    55         VFS_CREATE,
     50        VFS_OPEN = VFS_FIRST,
    5651        VFS_CLOSE,
    5752        VFS_READ,
    5853        VFS_WRITE,
     54        VFS_TRUNCATE,
     55        VFS_RENAME,
     56        VFS_OPENDIR,
     57        VFS_READDIR,
     58        VFS_CLOSEDIR,
     59        VFS_UNLINK,
     60        VFS_MOUNT,
     61        VFS_UNMOUNT,
     62        VFS_LAST_CMN,   /* keep this the last member of this enum */
     63} vfs_request_cmn_t;
     64
     65typedef enum {
     66        VFS_LOOKUP = VFS_LAST_CMN,
     67        VFS_LAST_CLNT,  /* keep this the last member of this enum */
     68} vfs_request_clnt_t;
     69
     70typedef enum {
     71        VFS_REGISTER = VFS_LAST_CMN,
    5972        VFS_SEEK,
    60         VFS_RENAME,
    61         VFS_UNLINK,
    62         VFS_LAST,               /* keep this the last member of the enum */
    63 } vfs_request_t;
     73        VFS_LAST_SRV,   /* keep this the last member of this enum */
     74} vfs_request_srv_t;
    6475
    6576
     
    8899       
    89100        /** Operations. */
    90         vfs_op_t ops[VFS_LAST - VFS_FIRST];
     101        vfs_op_t ops[VFS_LAST_CLNT - VFS_FIRST];
    91102} vfs_info_t;
    92103
Note: See TracChangeset for help on using the changeset viewer.