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


Ignore:
Timestamp:
2008-02-16T11:23:19Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f17667a
Parents:
8ccd2ea
Message:

Introduce the notion of VFS node link counts.

File:
1 edited

Legend:

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

    r8ccd2ea rb5553a2  
    174174        vfs_triplet_t triplet;
    175175        size_t size;
     176        unsigned lnkcnt;
    176177} vfs_lookup_res_t;
    177178
     
    182183typedef struct {
    183184        VFS_TRIPLET;            /**< Identity of the node. */
    184         unsigned refcnt;        /**< Usage counter. */
     185
     186        /**
     187         * Usage counter.  This includes, but is not limited to, all vfs_file_t
     188         * structures that reference this node.
     189         */
     190        unsigned refcnt;
     191       
     192        /** Number of names this node has in the file system namespace. */
     193        unsigned lnkcnt;
     194
    185195        link_t nh_link;         /**< Node hash-table link. */
    186196        size_t size;            /**< Cached size of the file. */
Note: See TracChangeset for help on using the changeset viewer.