diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-24 18:25:51 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-24 18:25:51 +0000 |
commit | 726e00973f65caf27e19150b510b31ceb32f8f05 (patch) | |
tree | 8195e934e856603065db56552a79ce91ea1829bd /sys/arch/hppa | |
parent | 62de202beb78758cb58d6c99fb289a654142f1f5 (diff) |
Restore validity checks for the disklabels read from disk. They
were suppressed in 2011 to address a problem that has since been
solved in a more permanent way. Without the validity check proper
disklabel discovery relied on a particular I/O failure, and the I/O
failure was 'solved' by the introduction of readdisksector().
Fixes problem reading CDROM disklabels discovered by mlarkin@ while
trying to install hppa.
Compile check/typo discovery and ok deraadt@.
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/disksubr.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c index 31eef20939a..964ea1e1c11 100644 --- a/sys/arch/hppa/hppa/disksubr.c +++ b/sys/arch/hppa/hppa/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.87 2015/09/28 21:52:28 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.88 2016/02/24 18:25:50 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -212,15 +212,7 @@ finished: if (error) goto done; - /* - * Do OpenBSD disklabel validation/adjustment. - * - * N.B: No matter what the bits are on the disk, we now have the - * OpenBSD disklabel for this lif disk. DO NOT proceed to - * readdoslabel(), iso_spooflabel(), etc. - */ - checkdisklabel(bp->b_data, lp, openbsdstart, DL_GETDSIZE(lp)); - error = 0; + error = checkdisklabel(bp->b_data, lp, openbsdstart, DL_GETDSIZE(lp)); done: return (error); |