fix broken `compat_atdisk'(replace raw device name with block device's).
Reviewed by: nyan MFC after: 3 days
This commit is contained in:
parent
e32abc1a60
commit
cfb3969378
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85351
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user