summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-08 05:34:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-08 05:34:29 +0000
commit6734ce8e36b95fafe001d2956bb65942845607be (patch)
tree96578f083e0ca4e703ee02f5afb3bda67f049ce9 /sys/arch/aviion
parent97db233d6e3ac6a4dd0ab00e7fbfe9bb0de82901 (diff)
all disklabels read from the kernel now always contain a total sector
size which is the REAL DISK SIZE. always. if a driver fails to set this right, please fix it. agreed with otto and krw
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r--sys/arch/aviion/aviion/disksubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/aviion/aviion/disksubr.c b/sys/arch/aviion/aviion/disksubr.c
index 4fe5c259174..26fd574e7f3 100644
--- a/sys/arch/aviion/aviion/disksubr.c
+++ b/sys/arch/aviion/aviion/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.26 2007/06/07 00:28:16 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.27 2007/06/08 05:34:27 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -268,6 +268,7 @@ notfat:
dkcksum(dlp) != 0)
msg = "disk label corrupted";
else {
+ DL_SETDSIZE(dlp, DL_GETDSIZE(lp));
*lp = *dlp;
msg = NULL;
break;