summaryrefslogtreecommitdiff
path: root/sys/dev/ata/wd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-08 05:27:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-08 05:27:59 +0000
commit97db233d6e3ac6a4dd0ab00e7fbfe9bb0de82901 (patch)
tree30bb631ce3e2825b5f28e702527a803918d9087e /sys/dev/ata/wd.c
parent41663440599d592f777310ed8c11e89fb470a2aa (diff)
all drivers should spoof version 1 labels
Diffstat (limited to 'sys/dev/ata/wd.c')
-rw-r--r--sys/dev/ata/wd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index 191cffe26cd..834f9a52c9b 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.63 2007/06/07 03:50:20 ray Exp $ */
+/* $OpenBSD: wd.c,v 1.64 2007/06/08 05:27:58 deraadt Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -789,6 +789,7 @@ wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp)
lp->d_rpm = 3600;
lp->d_interleave = 1;
lp->d_flags = 0;
+ lp->d_version = 1;
lp->d_magic = DISKMAGIC;
lp->d_magic2 = DISKMAGIC;