Lines Matching refs:infoSector
463 InfoSector_t *infoSector;
464 infoSector = (InfoSector_t *) safe_malloc(This->sector_size);
465 set_dword(infoSector->signature1, INFOSECT_SIGNATURE1);
466 memset(infoSector->filler1, 0, sizeof(infoSector->filler1));
467 memset(infoSector->filler2, 0, sizeof(infoSector->filler2));
468 set_dword(infoSector->signature2, INFOSECT_SIGNATURE2);
469 set_dword(infoSector->pos, This->last);
470 set_dword(infoSector->count, This->freeSpace);
471 set_dword(infoSector->signature3, 0xaa55);
472 if(forceWriteSector(This, (char *)infoSector, This->infoSectorLoc, 1) !=
475 free(infoSector);
687 This->infoSectorLoc = WORD(ext.fat32.infoSector);
690 InfoSector_t *infoSector;
691 infoSector = (InfoSector_t *) safe_malloc(size);
692 if(forceReadSector(This, (char *)infoSector,
695 _DWORD(infoSector->signature1) == INFOSECT_SIGNATURE1 &&
696 _DWORD(infoSector->signature2) == INFOSECT_SIGNATURE2) {
697 This->freeSpace = _DWORD(infoSector->count);
698 This->last = _DWORD(infoSector->pos);
700 free(infoSector);