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


Ignore:
Timestamp:
2007-09-13T20:19:40Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
183b4a0
Parents:
c952465d
Message:

VFS work.
Start implementing the VFS_REGISTER request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.h

    rc952465d rb3f598e  
    3535
    3636typedef enum {
    37         VFS_REGISTER = 1,
     37        VFS_REGISTER = 0,
    3838        VFS_MOUNT,
    3939        VFS_UNMOUNT,
    40         VFS_OPEN
     40        VFS_OPEN,
     41        VFS_LAST,               /* keep this the last member of the enum */
    4142} vfs_request_t;
     43
     44
     45/**
     46 * An instance of this structure is associated with a particular FS operation.
     47 * It tells VFS if the FS supports the operation or maybe if a default one
     48 * should be used.
     49 */
     50typedef enum {
     51        VFS_OP_NOTSUP = 0,
     52        VFS_OP_DEFAULT,
     53        VFS_OP_DEFINED
     54} vfs_op_t;
     55
     56#define FS_NAME_MAXLEN  20
     57
     58/**
     59 * A structure like this is passed to VFS by each individual FS upon its
     60 * registration. It assosiates a human-readable identifier with each
     61 * registered FS. More importantly, through this structure, the FS announces
     62 * what operations it supports.
     63 */
     64typedef struct {
     65        char fs_name[FS_NAME_MAXLEN];   /**< Unique identifier of the fs. */
     66        vfs_op_t ops[VFS_LAST];         /**< Operations. */
     67} vfs_info_t;
    4268
    4369#endif
Note: See TracChangeset for help on using the changeset viewer.