mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Fixed to support IBM-PC HDD.
- Use 'or' operation to change b_flags. - SCSI HDD device is 'da', not 'sd'. Submitted by: kura@tim.hi-ho.ne.jp (Tomohiko Kurahashi) and chi@bd.mbn.or.jp (Chiharu Shibata)
This commit is contained in:
parent
2dae6d29ec
commit
45a43b495c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53690
@ -318,10 +318,10 @@ dsinit(dev, lp, sspp)
|
||||
*/
|
||||
if (((cp[4] != 'I') || (cp[5] != 'P') || (cp[6] != 'L') ||
|
||||
(cp[7] != '1')) &&
|
||||
((strncmp(devtoname(bp->b_dev), "sd", 2) == 0) ||
|
||||
((strncmp(devtoname(bp->b_dev), "da", 2) == 0) ||
|
||||
(strncmp(devtoname(bp->b_dev), "wd", 2) == 0))) {
|
||||
/* IBM-PC HDD */
|
||||
bp->b_flags = B_INVAL | B_AGE;
|
||||
bp->b_flags |= B_INVAL | B_AGE;
|
||||
brelse(bp);
|
||||
return atcompat_dsinit(dev, lp, sspp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user