From 71c4abfe2bd2d33c0d831259139378950239f72f Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 29 Apr 2002 19:12:32 +0000 Subject: Do not forget to invoke iso_disklabelspoof() to deal correctly with cd-rom. --- sys/arch/vax/vax/disksubr.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/arch') diff --git a/sys/arch/vax/vax/disksubr.c b/sys/arch/vax/vax/disksubr.c index efacafeabf3..84e8b781147 100644 --- a/sys/arch/vax/vax/disksubr.c +++ b/sys/arch/vax/vax/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.17 2002/03/14 01:26:48 millert Exp $ */ +/* $OpenBSD: disksubr.c,v 1.18 2002/04/29 19:12:31 miod Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1999/06/30 18:48:06 ragge Exp $ */ /* @@ -168,6 +168,12 @@ readdisklabel(dev, strat, lp, osdep, spoofonly) *lp = *dlp; } } + +#if defined(CD9660) + if (msg && iso_disklabelspoof(dev, strat, lp) == 0) + msg = NULL; +#endif + bp->b_flags = B_INVAL | B_AGE | B_READ; brelse(bp); return (msg); -- cgit v1.2.3