Changeset 4b11571 in mainline for uspace/srv/fs/tmpfs/tmpfs.h


Ignore:
Timestamp:
2007-12-19T16:54:46Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6344851
Parents:
338c943
Message:

TMPFS work.
VFS_LOOKUP implemented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs.h

    r338c943 r4b11571  
    4343
    4444typedef struct tmpfs_dentry {
     45        unsigned index;         /**< TMPFS node index. */
    4546        struct tmpfs_dentry *parent;
    4647        struct tmpfs_dentry *sibling;
    4748        struct tmpfs_dentry *child;
    4849        char *name;
     50        enum {
     51                TMPFS_NONE,
     52                TMPFS_FILE,
     53                TMPFS_DIRECTORY
     54        } type;
     55        size_t size;            /**< File size if type is TMPFS_FILE. */
     56        void *data;             /**< File content's if type is TMPFS_FILE. */
    4957} tmpfs_dentry_t;
    5058
Note: See TracChangeset for help on using the changeset viewer.