Rev 3632 | Rev 3652 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3632 | Rev 3637 | ||
|---|---|---|---|
| Line 383... | Line 383... | ||
| 383 | unsigned fatno; |
383 | unsigned fatno; |
| 384 | fat_cluster_t nextc; |
384 | fat_cluster_t nextc; |
| 385 | 385 | ||
| 386 | /* Mark all clusters in the chain as free in all copies of FAT. */ |
386 | /* Mark all clusters in the chain as free in all copies of FAT. */ |
| 387 | while (firstc < FAT_CLST_LAST1) { |
387 | while (firstc < FAT_CLST_LAST1) { |
| - | 388 | assert(firstc >= FAT_CLST_FIRST && firstc < FAT_CLST_BAD); |
|
| 388 | nextc = fat_get_cluster(bs, dev_handle, firstc); |
389 | nextc = fat_get_cluster(bs, dev_handle, firstc); |
| 389 | assert(nextc >= FAT_CLST_FIRST && nextc < FAT_CLST_BAD); |
- | |
| 390 | for (fatno = FAT1; fatno < bs->fatcnt; fatno++) |
390 | for (fatno = FAT1; fatno < bs->fatcnt; fatno++) |
| 391 | fat_set_cluster(bs, dev_handle, fatno, firstc, |
391 | fat_set_cluster(bs, dev_handle, fatno, firstc, |
| 392 | FAT_CLST_RES0); |
392 | FAT_CLST_RES0); |
| 393 | firstc = nextc; |
393 | firstc = nextc; |
| 394 | } |
394 | } |