Changeset c84146d3 in mainline
- Timestamp:
- 2013-07-15T21:47:50Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2f706e
- Parents:
- b86a32e
- Location:
- uspace
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fs/libfs.c
rb86a32e rc84146d3 864 864 if (NULL != ops->size_block) 865 865 statfs.f_bsize = ops->size_block(service_id); 866 if (NULL != ops->total_block )867 statfs.f_blocks = ops->total_block (service_id);868 if (NULL != ops->free_block )869 statfs.f_bfree = ops->free_block (service_id);866 if (NULL != ops->total_block_count) 867 statfs.f_blocks = ops->total_block_count(service_id); 868 if (NULL != ops->free_block_count) 869 statfs.f_bfree = ops->free_block_count(service_id); 870 870 871 871 ops->node_put(fn); -
uspace/lib/fs/libfs.h
rb86a32e rc84146d3 94 94 service_id_t (* service_get)(fs_node_t *); 95 95 uint32_t (* size_block)(service_id_t); 96 uint64_t (* total_block )(service_id_t);97 uint64_t (* free_block )(service_id_t);96 uint64_t (* total_block_count)(service_id_t); 97 uint64_t (* free_block_count)(service_id_t); 98 98 } libfs_ops_t; 99 99 -
uspace/srv/fs/exfat/exfat_ops.c
rb86a32e rc84146d3 90 90 static service_id_t exfat_service_get(fs_node_t *node); 91 91 static uint32_t exfat_size_block(service_id_t); 92 static uint64_t exfat_total_block (service_id_t);93 static uint64_t exfat_free_block (service_id_t);92 static uint64_t exfat_total_block_count(service_id_t); 93 static uint64_t exfat_free_block_count(service_id_t); 94 94 95 95 /* … … 923 923 } 924 924 925 uint64_t exfat_total_block (service_id_t service_id)925 uint64_t exfat_total_block_count(service_id_t service_id) 926 926 { 927 927 exfat_bs_t *bs; … … 933 933 } 934 934 935 uint64_t exfat_free_block (service_id_t service_id)935 uint64_t exfat_free_block_count(service_id_t service_id) 936 936 { 937 937 exfat_bs_t *bs; … … 963 963 .service_get = exfat_service_get, 964 964 .size_block = exfat_size_block, 965 .total_block = exfat_total_block,966 .free_block = exfat_free_block965 .total_block_count = exfat_total_block_count, 966 .free_block_count = exfat_free_block_count 967 967 }; 968 968 -
uspace/srv/fs/ext4fs/ext4fs_ops.c
rb86a32e rc84146d3 102 102 static service_id_t ext4fs_service_get(fs_node_t *node); 103 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);104 static uint64_t ext4fs_total_block_count(service_id_t); 105 static uint64_t ext4fs_free_block_count(service_id_t); 106 106 107 107 /* Static variables */ … … 856 856 } 857 857 858 uint64_t ext4fs_total_block (service_id_t service_id)858 uint64_t ext4fs_total_block_count(service_id_t service_id) 859 859 { 860 860 ext4fs_instance_t *inst; … … 871 871 } 872 872 873 uint64_t ext4fs_free_block (service_id_t service_id)873 uint64_t ext4fs_free_block_count(service_id_t service_id) 874 874 { 875 875 ext4fs_instance_t *inst; … … 907 907 .service_get = ext4fs_service_get, 908 908 .size_block = ext4fs_size_block, 909 .total_block = ext4fs_total_block,910 .free_block = ext4fs_free_block909 .total_block_count = ext4fs_total_block_count, 910 .free_block_count = ext4fs_free_block_count 911 911 }; 912 912 -
uspace/srv/fs/mfs/mfs_ops.c
rb86a32e rc84146d3 65 65 static bool is_power_of_two(uint32_t n); 66 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);67 static uint64_t mfs_total_block_count(service_id_t service_id); 68 static uint64_t mfs_free_block_count(service_id_t service_id); 69 69 70 70 static hash_table_t open_nodes; … … 89 89 .lnkcnt_get = mfs_lnkcnt_get, 90 90 .size_block = mfs_size_block, 91 .total_block = mfs_total_block,92 .free_block = mfs_free_block91 .total_block_count = mfs_total_block_count, 92 .free_block_count = mfs_free_block_count 93 93 }; 94 94 … … 1153 1153 1154 1154 static uint64_t 1155 mfs_total_block (service_id_t service_id)1155 mfs_total_block_count(service_id_t service_id) 1156 1156 { 1157 1157 uint64_t block_total; … … 1171 1171 1172 1172 static uint64_t 1173 mfs_free_block (service_id_t service_id)1173 mfs_free_block_count(service_id_t service_id) 1174 1174 { 1175 1175 uint32_t block_free;
Note:
See TracChangeset
for help on using the changeset viewer.