Changeset d0a1e9b6 in mainline for uspace/srv/fs/mfs/mfs_ops.c


Ignore:
Timestamp:
2013-07-12T07:21:46Z (12 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
049d68b
Parents:
e8f0158
Message:

Update implementation size, total, free block operations like new stucture statfs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs_ops.c

    re8f0158 rd0a1e9b6  
    6464static int mfs_check_sanity(struct mfs_sb_info *sbi);
    6565static bool is_power_of_two(uint32_t n);
    66 static long mfs_size_block(service_id_t service_id);
    67 static long mfs_total_block(service_id_t service_id);
    68 static long mfs_free_block(service_id_t service_id);
     66static uint32_t mfs_size_block(service_id_t service_id);
     67static uint64_t mfs_total_block(service_id_t service_id);
     68static uint64_t mfs_free_block(service_id_t service_id);
    6969
    7070static hash_table_t open_nodes;
     
    11351135}
    11361136
    1137 static long
     1137static uint32_t
    11381138mfs_size_block(service_id_t service_id)
    11391139{
    1140         long block_size;
     1140        uint32_t block_size;
    11411141
    11421142        struct mfs_instance *inst;
     
    11521152}
    11531153
    1154 static long
     1154static uint64_t
    11551155mfs_total_block(service_id_t service_id)
    11561156{
    1157         long block_total;
     1157        uint64_t block_total;
    11581158       
    11591159        struct mfs_instance *inst;
     
    11651165                return ENOENT;
    11661166       
    1167         block_total = inst->sbi->nzones;
     1167        block_total = (uint64_t)inst->sbi->nzones;
    11681168
    11691169        return block_total;
    11701170}
    11711171
    1172 static long
     1172static uint64_t
    11731173mfs_free_block(service_id_t service_id)
    11741174{
     
    11851185        mfs_count_free_zones(inst, &block_free);
    11861186
    1187         return (long)block_free;
     1187        return (uint64_t)block_free;
    11881188}
    11891189
Note: See TracChangeset for help on using the changeset viewer.