summaryrefslogtreecommitdiff
path: root/sys/arch/landisk
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/landisk
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/landisk')
-rw-r--r--sys/arch/landisk/landisk/disksubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/landisk/landisk/disksubr.c b/sys/arch/landisk/landisk/disksubr.c
index 24452100b33..8b62b93db7f 100644
--- a/sys/arch/landisk/landisk/disksubr.c
+++ b/sys/arch/landisk/landisk/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.23 2007/06/07 00:28:17 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.24 2007/06/08 05:34:28 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;