diff options
author | amorita <amorita@FreeBSD.org> | 2001-10-23 09:39:09 +0000 |
---|---|---|
committer | amorita <amorita@FreeBSD.org> | 2001-10-23 09:39:09 +0000 |
commit | df2cb205e6e0f34bd95f47eca3d79357e445d49a (patch) | |
tree | 046857edfb32ebe26ecb909f0d8a25b81b429a17 /sys/pc98 | |
parent | 3024d1d26120bf419eefdcd353e720140189d4c7 (diff) | |
download | FreeBSD-src-df2cb205e6e0f34bd95f47eca3d79357e445d49a.zip FreeBSD-src-df2cb205e6e0f34bd95f47eca3d79357e445d49a.tar.gz |
fix broken `compat_atdisk'(replace raw device name with block device's).
Reviewed by: nyan
MFC after: 3 days
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/diskslice_machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/pc98/pc98/diskslice_machdep.c b/sys/pc98/pc98/diskslice_machdep.c index 948f146..6326576 100644 --- a/sys/pc98/pc98/diskslice_machdep.c +++ b/sys/pc98/pc98/diskslice_machdep.c @@ -320,8 +320,9 @@ reread_mbr: */ 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); |