Changeset 17a0fb8 in mainline


Ignore:
Timestamp:
2013-07-19T22:52:59Z (11 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d110908
Parents:
f4cbf9dd
Message:

Add total block count operation for fat filesystem.

File:
1 edited

Legend:

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

    rf4cbf9dd r17a0fb8  
    9292static service_id_t fat_service_get(fs_node_t *node);
    9393static uint32_t fat_size_block(service_id_t);
     94static uint64_t fat_total_block_count(service_id_t);
    9495
    9596/*
     
    852853}
    853854
     855uint64_t fat_total_block_count(service_id_t service_id)
     856{
     857        fat_bs_t *bs;
     858        bs = block_bb_get(service_id);
     859
     860        uint64_t block_count = (SPC(bs)) ? TS(bs) / SPC(bs) : 0;
     861
     862        return block_count;
     863}
     864
    854865/** libfs operations */
    855866libfs_ops_t fat_libfs_ops = {
     
    870881        .is_file = fat_is_file,
    871882        .service_get = fat_service_get,
    872         .size_block = fat_size_block
     883        .size_block = fat_size_block,
     884        .total_block_count = fat_total_block_count
    873885};
    874886
Note: See TracChangeset for help on using the changeset viewer.