/trunk/uspace/lib/libfs/libfs.c |
---|
196,8 → 196,8 |
if (lflag & L_CREATE) |
nodep = ops->create(lflag); |
else |
nodep = ops->node_get(fs_handle, |
dev_handle, index); |
nodep = ops->node_get(dev_handle, |
index); |
if (nodep) { |
if (!ops->link(cur, nodep, component)) { |
if (lflag & L_CREATE) |
260,8 → 260,7 |
if (lflag & L_CREATE) |
nodep = ops->create(lflag); |
else |
nodep = ops->node_get(fs_handle, dev_handle, |
index); |
nodep = ops->node_get(dev_handle, index); |
if (nodep) { |
if (!ops->link(cur, nodep, component)) { |
if (lflag & L_CREATE) |
/trunk/uspace/lib/libfs/libfs.h |
---|
43,7 → 43,7 |
typedef struct { |
void * (* match)(void *, const char *); |
void * (* node_get)(fs_handle_t, dev_handle_t, fs_index_t); |
void * (* node_get)(dev_handle_t, fs_index_t); |
void * (* create)(int); |
void (* destroy)(void *); |
bool (* link)(void *, void *, const char *); |
/trunk/uspace/srv/fs/tmpfs/tmpfs_ops.c |
---|
70,7 → 70,7 |
/* Forward declarations of static functions. */ |
static void *tmpfs_match(void *, const char *); |
static void *tmpfs_node_get(fs_handle_t, dev_handle_t, fs_index_t); |
static void *tmpfs_node_get(dev_handle_t, fs_index_t); |
static void *tmpfs_create_node(int); |
static bool tmpfs_link_node(void *, void *, const char *); |
static int tmpfs_unlink_node(void *, void *); |
266,7 → 266,7 |
} |
void * |
tmpfs_node_get(fs_handle_t fs_handle, dev_handle_t dev_handle, fs_index_t index) |
tmpfs_node_get(dev_handle_t dev_handle, fs_index_t index) |
{ |
unsigned long key = index; |
link_t *lnk = hash_table_find(&dentries, &key); |