Thu, 17 Apr 2014 01:50:41 -0600
ignore out-of-range addresses on low-level format commands (s4diag formats once sector past the end of each track)
src/wd2010.c | file | annotate | diff | revisions |
1.1 --- a/src/wd2010.c Wed Apr 16 02:20:43 2014 -0600 1.2 +++ b/src/wd2010.c Thu Apr 17 01:50:41 2014 -0600 1.3 @@ -349,7 +349,7 @@ 1.4 // Read Sector 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)) { 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))) { 1.9 LOG("*** WD2010 ALERT: CHS parameter limit exceeded! CHS=%d:%d:%d, nSecs=%d, endSec=%d maxCHS=%d:%d:%d", 1.10 ctx->track, ctx->head, ctx->sector, 1.11 ctx->sector_count,