NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/52814: WD_SOFTBADSECT option cause build error
The following reply was made to PR kern/52814; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/52814: WD_SOFTBADSECT option cause build error
Date: Wed, 13 Dec 2017 21:19:31 -0000 (UTC)
paul%whooppee.com@localhost (Paul Goyette) writes:
> Here is a more complete patch which should help:
>
> - daddr_t maxblk = blkno + (bp->b_bcount / wd->sc_blksize) - 1;
> + daddr_t maxblk = bp->b_rawblkno +
> + (bp->b_bcount / wd->sc_blksize) - 1;
Unfortunately the computation of b_rawblkno has been factored into
dk_strategy which is called only afterwards. See my patch...
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index