src/wd2010.c

branch
experimental_memory_mapper_v2
changeset 135
159f937af10d
parent 132
8a7dc9b5b1db
parent 134
b826697f411a
child 145
2d6de28c6e6c
     1.1 --- a/src/wd2010.c	Wed Mar 13 00:40:42 2013 +0000
     1.2 +++ b/src/wd2010.c	Wed Mar 13 01:10:34 2013 +0000
     1.3 @@ -419,7 +419,7 @@
     1.4  								LOG("WARNING: Geometry mismatch. WD2010 Write Sector with secsz %d != phys_secsz %d.", ssz, ctx->geom_secsz);
     1.5  
     1.6  							// Check to see if the cyl, hd and sec are valid
     1.7 -							if ((ctx->track > (ctx->geom_tracks-1)) || (ctx->head > (ctx->geom_heads-1)) || ((ctx->sector + ctx->sector_count - 1) > ctx->geom_spt-1) || (ssz != ctx->geom_secsz)) {
     1.8 +							if ((cmd != CMD_WRITE_FORMAT) && ((ctx->track > (ctx->geom_tracks-1)) || (ctx->head > (ctx->geom_heads-1)) || ((ctx->sector + ctx->sector_count - 1) > ctx->geom_spt-1) || (ssz != ctx->geom_secsz))) {
     1.9  								LOG("*** WD2010 ALERT: CHS parameter limit exceeded! dDrive1=%d CHS=%d:%d:%d, nSecs=%d, endSec=%d maxCHS=%d:%d:%d",
    1.10  										ctx->mcr2_ddrive1,
    1.11  										ctx->track, ctx->head, ctx->sector,