Subversion Repositories HelenOS

Rev

Rev 2856 | Rev 2858 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2856 Rev 2857
Line 304... Line 304...
304
    if (!--nodep->refcnt)
304
    if (!--nodep->refcnt)
305
        list_append(&nodep->ffn_link, &ffn_head);
305
        list_append(&nodep->ffn_link, &ffn_head);
306
    futex_up(&fin_futex);
306
    futex_up(&fin_futex);
307
}
307
}
308
 
308
 
-
 
309
static void *fat_create(int flags)
-
 
310
{
-
 
311
    return NULL;    /* not supported at the moment */
-
 
312
}
-
 
313
 
-
 
314
static bool fat_destroy(void *node)
-
 
315
{
-
 
316
    return false;   /* not supported at the moment */
-
 
317
}
-
 
318
 
-
 
319
static bool fat_link(void *prnt, void *chld, const char *name)
-
 
320
{
-
 
321
    return false;   /* not supported at the moment */
-
 
322
}
-
 
323
 
-
 
324
static int fat_unlink(void *prnt, void *chld)
-
 
325
{
-
 
326
    return ENOTSUP; /* not supported at the moment */
-
 
327
}
-
 
328
 
309
static void *fat_match(void *prnt, const char *component)
329
static void *fat_match(void *prnt, const char *component)
310
{
330
{
311
    fat_node_t *parentp = (fat_node_t *)prnt;
331
    fat_node_t *parentp = (fat_node_t *)prnt;
312
    char name[FAT_NAME_LEN + 1 + FAT_EXT_LEN + 1];
332
    char name[FAT_NAME_LEN + 1 + FAT_EXT_LEN + 1];
313
    unsigned i, j;
333
    unsigned i, j;
Line 443... Line 463...
443
/** libfs operations */
463
/** libfs operations */
444
libfs_ops_t fat_libfs_ops = {
464
libfs_ops_t fat_libfs_ops = {
445
    .match = fat_match,
465
    .match = fat_match,
446
    .node_get = fat_node_get,
466
    .node_get = fat_node_get,
447
    .node_put = fat_node_put,
467
    .node_put = fat_node_put,
448
    .create = NULL,
468
    .create = fat_create,
449
    .destroy = NULL,
469
    .destroy = fat_destroy,
450
    .link = NULL,
470
    .link = fat_link,
451
    .unlink = NULL,
471
    .unlink = fat_unlink,
452
    .index_get = fat_index_get,
472
    .index_get = fat_index_get,
453
    .size_get = fat_size_get,
473
    .size_get = fat_size_get,
454
    .lnkcnt_get = fat_lnkcnt_get,
474
    .lnkcnt_get = fat_lnkcnt_get,
455
    .has_children = fat_has_children,
475
    .has_children = fat_has_children,
456
    .root_get = fat_root_get,
476
    .root_get = fat_root_get,