summaryrefslogtreecommitdiffstats
path: root/sys/modules/geom
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-06-18 09:29:28 +0000
committerphk <phk@FreeBSD.org>2003-06-18 09:29:28 +0000
commit84a309987ce847321ccbfac2c62a793218ddf771 (patch)
tree04b9c1be72c573510a9498af541d610968df0640 /sys/modules/geom
parentde0f8d4cffdece57312d0849ec5485c743671571 (diff)
downloadFreeBSD-src-84a309987ce847321ccbfac2c62a793218ddf771.zip
FreeBSD-src-84a309987ce847321ccbfac2c62a793218ddf771.tar.gz
Add "GEOM_FOX", a class which detects and selects between multiple
redundant paths to the same device. This class reacts to a label in the first sector of the device, which is created the following way: # "0123456789abcdef012345..." # "<----magic-----><-id-...> echo "GEOM::FOX someid" | dd of=/dev/da0 conv=sync NB: Since the fact that multiple disk devices are in fact the same device is not known to GEOM, the geom taste/spoil process cannot fully catch all corner cases and this module can therefore be confused if you do the right wrong things. NB: The disk level drivers need to do the right thing for this to be useful, and that is not by definition currently the case.
Diffstat (limited to 'sys/modules/geom')
-rw-r--r--sys/modules/geom/Makefile1
-rw-r--r--sys/modules/geom/geom_fox/Makefile8
2 files changed, 9 insertions, 0 deletions
diff --git a/sys/modules/geom/Makefile b/sys/modules/geom/Makefile
index 5c5cfa8..fcf3934 100644
--- a/sys/modules/geom/Makefile
+++ b/sys/modules/geom/Makefile
@@ -4,6 +4,7 @@ SUBDIR= geom_apple \
geom_bde \
geom_bsd \
geom_ccd \
+ geom_fox \
geom_gpt \
geom_mbr \
geom_pc98 \
diff --git a/sys/modules/geom/geom_fox/Makefile b/sys/modules/geom/geom_fox/Makefile
new file mode 100644
index 0000000..adf8c2e
--- /dev/null
+++ b/sys/modules/geom/geom_fox/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom
+
+KMOD= geom_fox
+SRCS= geom_fox.c
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud