Subversion Repositories HelenOS

Rev

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

Rev 3621 Rev 3625
Line 221... Line 221...
221
 */
221
 */
222
static void *fat_node_get(dev_handle_t, fs_index_t);
222
static void *fat_node_get(dev_handle_t, fs_index_t);
223
static void fat_node_put(void *);
223
static void fat_node_put(void *);
224
static void *fat_create_node(dev_handle_t, int);
224
static void *fat_create_node(dev_handle_t, int);
225
static int fat_destroy_node(void *);
225
static int fat_destroy_node(void *);
226
static bool fat_link(void *, void *, const char *);
226
static int fat_link(void *, void *, const char *);
227
static int fat_unlink(void *, void *);
227
static int fat_unlink(void *, void *);
228
static void *fat_match(void *, const char *);
228
static void *fat_match(void *, const char *);
229
static fs_index_t fat_index_get(void *);
229
static fs_index_t fat_index_get(void *);
230
static size_t fat_size_get(void *);
230
static size_t fat_size_get(void *);
231
static unsigned fat_lnkcnt_get(void *);
231
static unsigned fat_lnkcnt_get(void *);
Line 339... Line 339...
339
    fat_idx_destroy(nodep->idx);
339
    fat_idx_destroy(nodep->idx);
340
    free(nodep);
340
    free(nodep);
341
    return EOK;
341
    return EOK;
342
}
342
}
343
 
343
 
344
bool fat_link(void *prnt, void *chld, const char *name)
344
int fat_link(void *prnt, void *chld, const char *name)
345
{
345
{
346
    return false;   /* not supported at the moment */
346
    return ENOTSUP; /* not supported at the moment */
347
}
347
}
348
 
348
 
349
int fat_unlink(void *prnt, void *chld)
349
int fat_unlink(void *prnt, void *chld)
350
{
350
{
351
    return ENOTSUP; /* not supported at the moment */
351
    return ENOTSUP; /* not supported at the moment */
Line 523... Line 523...
523
    .plb_get_char = fat_plb_get_char,
523
    .plb_get_char = fat_plb_get_char,
524
    .is_directory = fat_is_directory,
524
    .is_directory = fat_is_directory,
525
    .is_file = fat_is_file
525
    .is_file = fat_is_file
526
};
526
};
527
 
527
 
-
 
528
/*
-
 
529
 * VFS operations.
-
 
530
 */
-
 
531
 
528
void fat_mounted(ipc_callid_t rid, ipc_call_t *request)
532
void fat_mounted(ipc_callid_t rid, ipc_call_t *request)
529
{
533
{
530
    dev_handle_t dev_handle = (dev_handle_t) IPC_GET_ARG1(*request);
534
    dev_handle_t dev_handle = (dev_handle_t) IPC_GET_ARG1(*request);
531
    fat_bs_t *bs;
535
    fat_bs_t *bs;
532
    uint16_t bps;
536
    uint16_t bps;