summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-03-30 07:52:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-03-30 07:52:33 +0000
commitbf0f94ab5eae936591e29e8f7d2a371fea208c3d (patch)
tree67ef3a5c29b016573a5d0466f97bff6a68b38d95 /sys/arch/mvme68k
parent58a4d9051f44de59c0b328bef84258c7ad009269 (diff)
first approximation: spoof UDF filesystem disklabels when we see them.
it is likely a slight bug or two will sneak in with this, so everyone please keep an eye out on your disklabels
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r--sys/arch/mvme68k/mvme68k/disksubr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/mvme68k/disksubr.c b/sys/arch/mvme68k/mvme68k/disksubr.c
index 770a0f828ac..c7839998dfa 100644
--- a/sys/arch/mvme68k/mvme68k/disksubr.c
+++ b/sys/arch/mvme68k/mvme68k/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.30 2004/03/17 14:16:04 miod Exp $ */
+/* $OpenBSD: disksubr.c,v 1.31 2005/03/30 07:52:32 deraadt Exp $ */
/*
* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 1995 Dale Rahn.
@@ -159,6 +159,11 @@ readdisklabel(dev, strat, lp, clp, spoofonly)
if (iso_disklabelspoof(dev, strat, lp) == 0)
return (NULL);
#endif
+#if defined(UDF)
+ if (udf_disklabelspoof(dev, strat, lp) == 0)
+ return (NULL);
+#endif
+
if (clp->magic1 != DISKMAGIC || clp->magic2 != DISKMAGIC)
return ("no disk label");