From fc03234b771d80afbbf1e4f8e12df381de4e0b4d Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 5 Dec 1996 13:22:10 +0000 Subject: [PATCH] call iso_disklabelspoof() if neccessary --- sys/arch/sparc/sparc/disksubr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c index 0e4ab2f726f..22e0bde06b3 100644 --- a/sys/arch/sparc/sparc/disksubr.c +++ b/sys/arch/sparc/sparc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.6 1996/09/12 04:33:29 downsj Exp $ */ +/* $OpenBSD: disksubr.c,v 1.7 1996/12/05 13:22:10 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */ /* @@ -146,6 +146,11 @@ readdisklabel(dev, strat, lp, clp) lp->d_partitions[0].p_size = 0x1fffffff; lp->d_partitions[0].p_offset = 0; +#if defined(CD9660) + if (iso_disklabelspoof(dev, strat, lp) == 0) + return (msg); +#endif + /* obtain buffer to probe drive with */ bp = geteblk((int)lp->d_secsize); -- 2.20.1