Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2856 → Rev 2857

/trunk/uspace/lib/libfs/libfs.c
198,7 → 198,7
if (nodep) {
if (!ops->link(cur, nodep, component)) {
if (lflag & L_CREATE)
ops->destroy(nodep);
(void)ops->destroy(nodep);
ipc_answer_0(rid, ENOSPC);
} else {
ipc_answer_5(rid, EOK,
267,7 → 267,7
if (nodep) {
if (!ops->link(cur, nodep, component)) {
if (lflag & L_CREATE)
ops->destroy(nodep);
(void)ops->destroy(nodep);
ipc_answer_0(rid, ENOSPC);
} else {
ipc_answer_5(rid, EOK,
/trunk/uspace/lib/libfs/libfs.h
46,7 → 46,7
void * (* node_get)(dev_handle_t, fs_index_t, fs_index_t);
void (* node_put)(void *);
void * (* create)(int);
void (* destroy)(void *);
bool (* destroy)(void *);
bool (* link)(void *, void *, const char *);
int (* unlink)(void *, void *);
fs_index_t (* index_get)(void *);
/trunk/uspace/srv/fs/tmpfs/tmpfs_ops.c
75,7 → 75,7
static void *tmpfs_create_node(int);
static bool tmpfs_link_node(void *, void *, const char *);
static int tmpfs_unlink_node(void *, void *);
static void tmpfs_destroy_node(void *);
static bool tmpfs_destroy_node(void *);
 
/* Implementation of helper functions. */
static fs_index_t tmpfs_index_get(void *nodep)
374,7 → 374,7
return EOK;
}
 
void tmpfs_destroy_node(void *nodep)
bool tmpfs_destroy_node(void *nodep)
{
tmpfs_dentry_t *dentry = (tmpfs_dentry_t *) nodep;
390,6 → 390,7
if (dentry->type == TMPFS_FILE)
free(dentry->data);
free(dentry);
return true;
}
 
void tmpfs_lookup(ipc_callid_t rid, ipc_call_t *request)
/trunk/uspace/srv/fs/fat/fat_ops.c
306,6 → 306,26
futex_up(&fin_futex);
}
 
static void *fat_create(int flags)
{
return NULL; /* not supported at the moment */
}
 
static bool fat_destroy(void *node)
{
return false; /* not supported at the moment */
}
 
static bool fat_link(void *prnt, void *chld, const char *name)
{
return false; /* not supported at the moment */
}
 
static int fat_unlink(void *prnt, void *chld)
{
return ENOTSUP; /* not supported at the moment */
}
 
static void *fat_match(void *prnt, const char *component)
{
fat_node_t *parentp = (fat_node_t *)prnt;
445,10 → 465,10
.match = fat_match,
.node_get = fat_node_get,
.node_put = fat_node_put,
.create = NULL,
.destroy = NULL,
.link = NULL,
.unlink = NULL,
.create = fat_create,
.destroy = fat_destroy,
.link = fat_link,
.unlink = fat_unlink,
.index_get = fat_index_get,
.size_get = fat_size_get,
.lnkcnt_get = fat_lnkcnt_get,