Changeset 5cd6c84 in mainline
- Timestamp:
- 2013-07-23T17:46:40Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0e976d9b, a39aac7
- Parents:
- 675a2bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r675a2bb r5cd6c84 867 867 { 868 868 fat_bs_t *bs; 869 fat_cluster_t e0 = 0;869 fat_cluster_t e0; 870 870 uint64_t block_count; 871 871 int rc; 872 uint32_t fat_no, fat_tot;872 uint32_t cluster_no, clusters; 873 873 874 874 block_count = 0; 875 875 bs = block_bb_get(service_id); 876 876 877 fat_tot= (SPC(bs)) ? TS(bs) / SPC(bs) : 0;877 clusters = (SPC(bs)) ? TS(bs) / SPC(bs) : 0; 878 878 879 for ( fat_no = 0; fat_no < fat_tot; fat_no++) {880 rc = fat_get_cluster(bs, service_id, FAT1, fat_no, &e0);879 for (cluster_no = 0; cluster_no < clusters; cluster_no++) { 880 rc = fat_get_cluster(bs, service_id, FAT1, cluster_no, &e0); 881 881 if (rc != EOK) 882 882 return EIO;
Note:
See TracChangeset
for help on using the changeset viewer.