fix broken `compat_atdisk'(replace raw device name with block device's).

Reviewed by:	nyan
MFC after:	3 days
This commit is contained in:
Akio Morita 2001-10-23 09:39:09 +00:00
parent e32abc1a60
commit cfb3969378
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85351

View File

@ -320,8 +320,9 @@ dsinit(dev, lp, sspp)
*/
if (((cp[4] != 'I') || (cp[5] != 'P') || (cp[6] != 'L') ||
(cp[7] != '1')) &&
((strncmp(devtoname(bp->b_dev), "rda", 3) == 0) ||
(strncmp(devtoname(bp->b_dev), "rwd", 3) == 0))) {
((strncmp(devtoname(bp->b_dev), "da", 2) == 0) ||
(strncmp(devtoname(bp->b_dev), "wd", 2) == 0) ||
(strncmp(devtoname(bp->b_dev), "ad", 2) == 0))) {
/* IBM-PC HDD */
bp->b_flags |= B_INVAL | B_AGE;
brelse(bp);