Changeset 990ab7d in mainline


Ignore:
Timestamp:
2013-07-10T21:26:48Z (11 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
224174f, 52ff62d3
Parents:
951f32ce
Message:

Add size block operation support for fat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r951f32ce r990ab7d  
    9191static bool fat_is_file(fs_node_t *node);
    9292static service_id_t fat_service_get(fs_node_t *node);
     93static long fat_size_block(service_id_t);
    9394
    9495/*
     
    843844}
    844845
     846long fat_size_block(service_id_t service_id)
     847{
     848        fat_bs_t *bs;
     849        bs = block_bb_get(service_id);
     850
     851        return BPC(bs);
     852}
     853
    845854/** libfs operations */
    846855libfs_ops_t fat_libfs_ops = {
     
    860869        .is_directory = fat_is_directory,
    861870        .is_file = fat_is_file,
    862         .service_get = fat_service_get
     871        .service_get = fat_service_get,
     872        .size_block = fat_size_block
    863873};
    864874
Note: See TracChangeset for help on using the changeset viewer.