Changeset d0a1e9b6 in mainline
- 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
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fs/libfs.h
re8f0158 rd0a1e9b6 93 93 bool (* is_file)(fs_node_t *); 94 94 service_id_t (* service_get)(fs_node_t *); 95 long(* size_block)(service_id_t);96 long(* total_block)(service_id_t);97 long(* free_block)(service_id_t);95 uint32_t (* size_block)(service_id_t); 96 uint64_t (* total_block)(service_id_t); 97 uint64_t (* free_block)(service_id_t); 98 98 } libfs_ops_t; 99 99 -
uspace/srv/fs/exfat/exfat_ops.c
re8f0158 rd0a1e9b6 89 89 static bool exfat_is_file(fs_node_t *node); 90 90 static service_id_t exfat_service_get(fs_node_t *node); 91 static longexfat_size_block(service_id_t);91 static uint32_t exfat_size_block(service_id_t); 92 92 93 93 /* … … 913 913 } 914 914 915 longexfat_size_block(service_id_t service_id)915 uint32_t exfat_size_block(service_id_t service_id) 916 916 { 917 917 exfat_bs_t *bs; -
uspace/srv/fs/ext4fs/ext4fs_ops.c
re8f0158 rd0a1e9b6 101 101 static bool ext4fs_is_file(fs_node_t *node); 102 102 static service_id_t ext4fs_service_get(fs_node_t *node); 103 static longext4fs_size_block(service_id_t);104 static longext4fs_total_block(service_id_t);105 static longext4fs_free_block(service_id_t);103 static uint32_t ext4fs_size_block(service_id_t); 104 static uint64_t ext4fs_total_block(service_id_t); 105 static uint64_t ext4fs_free_block(service_id_t); 106 106 107 107 /* Static variables */ … … 841 841 } 842 842 843 longext4fs_size_block(service_id_t service_id)843 uint32_t ext4fs_size_block(service_id_t service_id) 844 844 { 845 845 ext4fs_instance_t *inst; … … 856 856 } 857 857 858 longext4fs_total_block(service_id_t service_id)858 uint64_t ext4fs_total_block(service_id_t service_id) 859 859 { 860 860 ext4fs_instance_t *inst; … … 866 866 867 867 ext4_superblock_t *sb = inst->filesystem->superblock; 868 uint 32_t block_count = ext4_superblock_get_blocks_count(sb);868 uint64_t block_count = ext4_superblock_get_blocks_count(sb); 869 869 870 870 return block_count; 871 871 } 872 872 873 longext4fs_free_block(service_id_t service_id)873 uint64_t ext4fs_free_block(service_id_t service_id) 874 874 { 875 875 ext4fs_instance_t *inst; … … 881 881 882 882 ext4_superblock_t *sb = inst->filesystem->superblock; 883 uint 32_t block_count = ext4_superblock_get_free_blocks_count(sb);883 uint64_t block_count = ext4_superblock_get_free_blocks_count(sb); 884 884 885 885 return block_count; -
uspace/srv/fs/fat/fat_ops.c
re8f0158 rd0a1e9b6 91 91 static bool fat_is_file(fs_node_t *node); 92 92 static service_id_t fat_service_get(fs_node_t *node); 93 static longfat_size_block(service_id_t);93 static uint32_t fat_size_block(service_id_t); 94 94 95 95 /* … … 844 844 } 845 845 846 longfat_size_block(service_id_t service_id)846 uint32_t fat_size_block(service_id_t service_id) 847 847 { 848 848 fat_bs_t *bs; -
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 -
uspace/srv/fs/udf/udf_ops.c
re8f0158 rd0a1e9b6 249 249 } 250 250 251 static longudf_size_block(service_id_t service_id)251 static uint32_t udf_size_block(service_id_t service_id) 252 252 { 253 253 udf_instance_t *instance;
Note:
See TracChangeset
for help on using the changeset viewer.