diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-08 05:34:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-08 05:34:29 +0000 |
commit | 6734ce8e36b95fafe001d2956bb65942845607be (patch) | |
tree | 96578f083e0ca4e703ee02f5afb3bda67f049ce9 /sys/arch/alpha | |
parent | 97db233d6e3ac6a4dd0ab00e7fbfe9bb0de82901 (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/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/disksubr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c index 695028a8191..04abe22c930 100644 --- a/sys/arch/alpha/alpha/disksubr.c +++ b/sys/arch/alpha/alpha/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.76 2007/06/07 00:28:16 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.77 2007/06/08 05:34:26 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -96,6 +96,7 @@ readbsdlabel(struct buf *bp, void (*strat)(struct buf *), if (dlp->d_npartitions > MAXPARTITIONS || cksum != 0) { msg = "disk label corrupted"; } else { + DL_SETDSIZE(dlp, DL_GETDSIZE(lp)); *lp = *dlp; msg = NULL; break; |