* adfWriteBitmapExtBlock * */
| 517 | * |
| 518 | */ |
| 519 | RETCODE |
| 520 | adfWriteBitmapExtBlock(struct Volume* vol, SECTNUM nSect, struct bBitmapExtBlock* bitme) |
| 521 | { |
| 522 | uint8_t buf[LOGICAL_BLOCK_SIZE]; |
| 523 | |
| 524 | memcpy(buf,bitme, LOGICAL_BLOCK_SIZE); |
| 525 | #ifdef LITT_ENDIAN |
| 526 | /* little to big */ |
| 527 | swapEndian(buf, SWBL_BITMAPE); |
| 528 | #endif |
| 529 | |
| 530 | /* dumpBlock((uint8_t*)buf);*/ |
| 531 | if (adfWriteBlock(vol, nSect, (uint8_t*)buf)!=RC_OK) |
| 532 | return RC_ERROR; |
| 533 | |
| 534 | return RC_OK; |
| 535 | } |
| 536 | |
| 537 | |
| 538 | /* |
no test coverage detected