summaryrefslogtreecommitdiffstats
path: root/sys/dev/vnd.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2010-04-23 15:25:20 +0000
committerjsing <jsing@openbsd.org>2010-04-23 15:25:20 +0000
commitd8b1e0ec2dbc403b285d5ef241509edd31fbdde8 (patch)
tree04bb028f5c45627307a0309e695988420803b660 /sys/dev/vnd.c
parentWhen converting A-Z into a control character, want to subtract 64 not (diff)
downloadwireguard-openbsd-d8b1e0ec2dbc403b285d5ef241509edd31fbdde8.tar.xz
wireguard-openbsd-d8b1e0ec2dbc403b285d5ef241509edd31fbdde8.zip
Recycle unused disklabel fields in order to create a disklabel unique
identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
Diffstat (limited to 'sys/dev/vnd.c')
-rw-r--r--sys/dev/vnd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 1df2b5202d4..04d241f8a6f 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.95 2009/08/24 08:51:18 jasper Exp $ */
+/* $OpenBSD: vnd.c,v 1.96 2010/04/23 15:25:21 jsing Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -316,8 +316,6 @@ vndgetdisklabel(dev_t dev, struct vnd_softc *sc, struct disklabel *lp,
lp->d_type = DTYPE_VND;
strncpy(lp->d_packname, "fictitious", sizeof(lp->d_packname));
DL_SETDSIZE(lp, sc->sc_size);
- lp->d_rpm = 3600;
- lp->d_interleave = 1;
lp->d_flags = 0;
lp->d_version = 1;