Ticket #3690: fat_mirror.diff
File fat_mirror.diff, 633 bytes (added by , 14 years ago) |
---|
-
fat.c
29 29 mirror_fats(nspace *vol, uint32 sector, uint8 *buffer) 30 30 { 31 31 uint32 i; 32 char *buf = buffer;33 32 34 33 if (!vol->fat_mirrored) 35 34 return B_OK; … … 43 42 44 43 blockData = block_cache_get_writable_etc(vol->fBlockCache, sector 45 44 + i * vol->sectors_per_fat, 0, 1, -1); 46 memcpy(blockData, buf, vol->bytes_per_sector); 47 buf += vol->bytes_per_sector; 45 memcpy(blockData, buffer, vol->bytes_per_sector); 48 46 block_cache_put(vol->fBlockCache, sector + i * vol->sectors_per_fat); 49 47 }