summaryrefslogtreecommitdiffstats
path: root/sys/dev/vnd.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-06-08 05:27:58 +0000
committerderaadt <deraadt@openbsd.org>2007-06-08 05:27:58 +0000
commit222309212df9fe7b2231f37bca7fc731a79b645b (patch)
treef4c6c73d54329730bf29c61052ee39c0dda79a64 /sys/dev/vnd.c
parent- always set the partition disk size to full disk info (from driver) (diff)
downloadwireguard-openbsd-222309212df9fe7b2231f37bca7fc731a79b645b.tar.xz
wireguard-openbsd-222309212df9fe7b2231f37bca7fc731a79b645b.zip
all drivers should spoof version 1 labels
Diffstat (limited to 'sys/dev/vnd.c')
-rw-r--r--sys/dev/vnd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index eeae63a60cd..92e452ef173 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.77 2007/06/06 17:15:13 deraadt Exp $ */
+/* $OpenBSD: vnd.c,v 1.78 2007/06/08 05:27:58 deraadt Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -313,6 +313,7 @@ vndgetdisklabel(dev_t dev, struct vnd_softc *sc)
lp->d_rpm = 3600;
lp->d_interleave = 1;
lp->d_flags = 0;
+ lp->d_version = 1;
lp->d_magic = DISKMAGIC;
lp->d_magic2 = DISKMAGIC;