Changeset 36eae10f in rtems
- Timestamp:
- 10/22/03 19:16:28 (19 years ago)
- Children:
- 106942b
- Parents:
- 2516406
- Location:
- cpukit/libfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libfs/ChangeLog
r2516406 r36eae10f 1 2003-10-22 Thomas Doerfler <Thomas.Doerfler@imd-systems.de> 2 3 PR 515/filesystem 4 * src/dosfs/fat_fat_operations.c: Remove commented out code. 5 1 6 2003-10-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 7 -
cpukit/libfs/src/dosfs/fat_fat_operations.c
r2516406 r36eae10f 64 64 return rc; 65 65 66 if ((fs_info->vol.type & FAT_FAT32) && 67 (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)) 66 if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE) 68 67 cl4find = fs_info->vol.next_cl; 69 68 … … 83 82 } 84 83 85 /*if ((next_cln & fs_info->vol.mask) == FAT_GENFAT_FREE)*/86 84 if (next_cln == FAT_GENFAT_FREE) 87 85 { … … 133 131 if (*cls_added == count) 134 132 { 135 if (fs_info->vol.type & FAT_FAT32)136 {137 133 fs_info->vol.next_cl = save_cln; 138 134 if (fs_info->vol.free_cls != 0xFFFFFFFF) 139 135 fs_info->vol.free_cls -= (*cls_added); 140 }141 136 *last_cl = save_cln; 142 137 fat_buf_release(fs_info); … … 150 145 } 151 146 152 if (fs_info->vol.type & FAT_FAT32)153 {154 147 fs_info->vol.next_cl = save_cln; 155 148 if (fs_info->vol.free_cls != 0xFFFFFFFF) 156 149 fs_info->vol.free_cls -= (*cls_added); 157 } 150 158 151 *last_cl = save_cln; 159 152 fat_buf_release(fs_info); … … 188 181 if ( rc != RC_OK ) 189 182 { 190 if ((fs_info->vol.type & FAT_FAT32) && 191 (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)) 183 if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 192 184 fs_info->vol.free_cls += freed_cls_cnt; 185 193 186 fat_buf_release(fs_info); 194 187 return rc; … … 203 196 } 204 197 205 if (fs_info->vol.type & FAT_FAT32)206 {207 198 fs_info->vol.next_cl = chain; 208 199 if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 209 200 fs_info->vol.free_cls += freed_cls_cnt; 210 }211 201 212 202 fat_buf_release(fs_info); … … 347 337 if ( FAT_CLUSTER_IS_ODD(cln) ) 348 338 { 349 #if 0350 /*351 * do not perform endian conversion explicitely,352 * because following code will enforce little353 * endian format implicitly!354 */355 fat16_clv = CT_LE_W((((unsigned16)in_val) << FAT_FAT12_SHIFT));356 #else357 339 fat16_clv = ((unsigned16)in_val) << FAT_FAT12_SHIFT; 358 #endif359 340 *((unsigned8 *)(block0->buffer + ofs)) = 360 341 (*((unsigned8 *)(block0->buffer + ofs))) & 0x0F; … … 392 373 else 393 374 { 394 #if 0395 /*396 * do not perform endian conversion explicitely,397 * because following code will enforce little398 * endian format implicitly!399 */400 fat16_clv = CT_LE_W((((unsigned16)in_val) & FAT_FAT12_MASK));401 #else402 375 fat16_clv = ((unsigned16)in_val) & FAT_FAT12_MASK; 403 #endif404 376 *((unsigned8 *)(block0->buffer + ofs)) &= 0x00; 405 377
Note: See TracChangeset
for help on using the changeset viewer.