summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2001-01-20 03:46:19 +0000
committergrog <grog@FreeBSD.org>2001-01-20 03:46:19 +0000
commit18831b15201a666065836859262791a86f2e8166 (patch)
tree34b40aca9bcd01f8e72c50be890f361438ead7bc /sys/dev/vinum
parent3923d4a12bb792009fa4d9fdeee4f9df34aae8b8 (diff)
downloadFreeBSD-src-18831b15201a666065836859262791a86f2e8166.zip
FreeBSD-src-18831b15201a666065836859262791a86f2e8166.tar.gz
Correct check for partition c. Previously the check was for drive 2,
which did not exactly have the desired result. Submitted by: Akira Watanabe <akira@myaw.ei.meisei-u.ac.jp>
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinumio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c
index cb66d29..584915f 100644
--- a/sys/dev/vinum/vinumio.c
+++ b/sys/dev/vinum/vinumio.c
@@ -125,7 +125,7 @@ open_drive(struct drive *drive, struct proc *p, int verbose)
+((unit & ~31) << 16); /* high-order unit bits */
}
- if ((unit & 7) == 2) /* partition c */
+ if ((devminor & 7) == 2) /* partition c */
return ENOTTY; /* not buying that */
drive->dev = makedev(devmajor, devminor); /* find the device */
OpenPOWER on IntegriCloud