summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-04-29 19:12:32 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-04-29 19:12:32 +0000
commit71c4abfe2bd2d33c0d831259139378950239f72f (patch)
treeac7cd3ccba45c03cfcb54b66d9728850a6afb245 /sys/arch/vax
parent48c8d177c56e41072d66d041c44a9fecc37212ca (diff)
Do not forget to invoke iso_disklabelspoof() to deal correctly with cd-rom.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/vax/disksubr.c8
1 files changed, 7 insertions, 1 deletions
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);