-/* $OpenBSD: disksubr.c,v 1.12 1996/12/05 13:09:35 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.13 1996/12/07 12:20:39 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
lp->d_partitions[i].p_size = 0x1fffffff;
lp->d_partitions[i].p_offset = 0;
-#if defined(CD9660)
- if (iso_disklabelspoof(dev, strat, lp) == 0)
- return (msg);
-#endif
-
/* get a buffer and initialize it */
bp = geteblk((int)lp->d_secsize);
bp->b_dev = dev;
}
}
- if (msg)
+ if (msg) {
+#if defined(CD9660)
+ if (iso_disklabelspoof(dev, strat, lp) == 0)
+ return (msg);
+#endif
goto done;
+ }
/* obtain bad sector table if requested and present */
if (bdp && (lp->d_flags & D_BADSECT)) {
-/* $OpenBSD: disksubr.c,v 1.8 1996/12/06 00:12:21 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.9 1996/12/07 12:20:40 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */
/*
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 (NULL);
-#endif
-
/* obtain buffer to probe drive with */
bp = geteblk((int)lp->d_secsize);
return (NULL);
}
+#if defined(CD9660)
+ if (iso_disklabelspoof(dev, strat, lp) == 0)
+ return (NULL);
+#endif
bzero(clp->cd_block, sizeof(clp->cd_block));
return ("no disk label");
}