summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-04-25 19:29:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-04-25 19:29:12 +0000
commitb528466fd55043bb69b400b4b8384f3a74213809 (patch)
treeb10afc5b0ae8bc055548a4f72d004a69971f4fc6
parentdde293f9497f9ee45b18b44d154cec730ef8d5d5 (diff)
Remove backwards compatibility for svnd. All new operations must use the
vnd devices nodes, which impliment svnd functionality -- that being the only thing which vnd now supports. Confused? Don't worry, it is documented. ok krw thib
-rw-r--r--sys/dev/vnd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index b856656ac12..fda155530ac 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.113 2011/04/23 22:00:09 miod Exp $ */
+/* $OpenBSD: vnd.c,v 1.114 2011/04/25 19:29:11 deraadt Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -83,11 +83,7 @@ int vnddebug = 0x00;
#define DNPRINTF(f, p...) /* nothing */
#endif /* VNDDEBUG */
-/*
- * vndunit is a bit weird. have to reconstitute the dev_t for
- * DISKUNIT(), but with the minor masked off.
- */
-#define vndunit(x) DISKUNIT(makedev(major(x), minor(x) & 0x7ff))
+#define vndunit(x) DISKUNIT(makedev(major(x), minor(x)))
#define VNDLABELDEV(dev) \
makedev(major(dev), DISKMINOR(vndunit(dev), RAW_PART))