Changeset d0a1e9b6 in mainline for uspace/srv/fs/mfs/mfs_ops.c
- Timestamp:
- 2013-07-12T07:21:46Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 049d68b
- Parents:
- e8f0158
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_ops.c
re8f0158 rd0a1e9b6 64 64 static int mfs_check_sanity(struct mfs_sb_info *sbi); 65 65 static bool is_power_of_two(uint32_t n); 66 static longmfs_size_block(service_id_t service_id);67 static longmfs_total_block(service_id_t service_id);68 static longmfs_free_block(service_id_t service_id);66 static uint32_t mfs_size_block(service_id_t service_id); 67 static uint64_t mfs_total_block(service_id_t service_id); 68 static uint64_t mfs_free_block(service_id_t service_id); 69 69 70 70 static hash_table_t open_nodes; … … 1135 1135 } 1136 1136 1137 static long1137 static uint32_t 1138 1138 mfs_size_block(service_id_t service_id) 1139 1139 { 1140 longblock_size;1140 uint32_t block_size; 1141 1141 1142 1142 struct mfs_instance *inst; … … 1152 1152 } 1153 1153 1154 static long1154 static uint64_t 1155 1155 mfs_total_block(service_id_t service_id) 1156 1156 { 1157 longblock_total;1157 uint64_t block_total; 1158 1158 1159 1159 struct mfs_instance *inst; … … 1165 1165 return ENOENT; 1166 1166 1167 block_total = inst->sbi->nzones;1167 block_total = (uint64_t)inst->sbi->nzones; 1168 1168 1169 1169 return block_total; 1170 1170 } 1171 1171 1172 static long1172 static uint64_t 1173 1173 mfs_free_block(service_id_t service_id) 1174 1174 { … … 1185 1185 mfs_count_free_zones(inst, &block_free); 1186 1186 1187 return ( long)block_free;1187 return (uint64_t)block_free; 1188 1188 } 1189 1189
Note:
See TracChangeset
for help on using the changeset viewer.