Changeset adb5fe3 in mainline for uspace/srv/fs/tmpfs/tmpfs_ops.c


Ignore:
Timestamp:
2008-11-09T21:24:59Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b24786a
Parents:
9a3d5f0
Message:

libfs create operation should take the device handle as argument.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    r9a3d5f0 radb5fe3  
    6565static tmpfs_dentry_t *root;
    6666
     67#define TMPFS_DEV               0       /**< Dummy device handle for TMPFS */
     68
    6769/*
    6870 * Implementation of the libfs interface.
     
    7375static void *tmpfs_node_get(dev_handle_t, fs_index_t);
    7476static void tmpfs_node_put(void *);
    75 static void *tmpfs_create_node(int);
     77static void *tmpfs_create_node(dev_handle_t, int);
    7678static bool tmpfs_link_node(void *, void *, const char *);
    7779static int tmpfs_unlink_node(void *, void *);
     
    229231        if (!hash_table_create(&dentries, DENTRIES_BUCKETS, 1, &dentries_ops))
    230232                return false;
    231         root = (tmpfs_dentry_t *) tmpfs_create_node(L_DIRECTORY);
     233        root = (tmpfs_dentry_t *) tmpfs_create_node(TMPFS_DEV, L_DIRECTORY);
    232234        if (!root) {
    233235                hash_table_destroy(&dentries);
     
    283285}
    284286
    285 void *tmpfs_create_node(int lflag)
     287void *tmpfs_create_node(dev_handle_t dev_handle, int lflag)
    286288{
    287289        assert((lflag & L_FILE) ^ (lflag & L_DIRECTORY));
Note: See TracChangeset for help on using the changeset viewer.