Changeset 92b8547b in rtems
- Timestamp:
- 08/05/03 18:05:20 (21 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- d29cb93
- Parents:
- 45b185e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libfs/src/dosfs/fat_fat_operations.c
r45b185e r92b8547b 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.type & FAT_FAT32) && 67 (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE))*/ 68 if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE) 68 69 cl4find = fs_info->vol.next_cl; 69 70 … … 133 134 if (*cls_added == count) 134 135 { 135 if (fs_info->vol.type & FAT_FAT32)136 { 136 /*if (fs_info->vol.type & FAT_FAT32) 137 {*/ 137 138 fs_info->vol.next_cl = save_cln; 138 139 if (fs_info->vol.free_cls != 0xFFFFFFFF) 139 140 fs_info->vol.free_cls -= (*cls_added); 140 }141 /*}*/ 141 142 *last_cl = save_cln; 142 143 fat_buf_release(fs_info); … … 150 151 } 151 152 152 if (fs_info->vol.type & FAT_FAT32)153 { 153 /*if (fs_info->vol.type & FAT_FAT32) 154 {*/ 154 155 fs_info->vol.next_cl = save_cln; 155 156 if (fs_info->vol.free_cls != 0xFFFFFFFF) 156 157 fs_info->vol.free_cls -= (*cls_added); 157 } 158 /*}*/ 159 158 160 *last_cl = save_cln; 159 161 fat_buf_release(fs_info); … … 188 190 if ( rc != RC_OK ) 189 191 { 190 if ((fs_info->vol.type & FAT_FAT32) && 191 (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)) 192 /*if ((fs_info->vol.type & FAT_FAT32) && 193 (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE))*/ 194 if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 192 195 fs_info->vol.free_cls += freed_cls_cnt; 196 193 197 fat_buf_release(fs_info); 194 198 return rc; … … 203 207 } 204 208 205 if (fs_info->vol.type & FAT_FAT32)206 { 209 /*if (fs_info->vol.type & FAT_FAT32) 210 {*/ 207 211 fs_info->vol.next_cl = chain; 208 212 if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 209 213 fs_info->vol.free_cls += freed_cls_cnt; 210 }214 /*}*/ 211 215 212 216 fat_buf_release(fs_info);
Note: See TracChangeset
for help on using the changeset viewer.