summaryrefslogtreecommitdiffstats
path: root/sys/modules/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-07-25 10:03:16 +0000
committerpjd <pjd@FreeBSD.org>2005-07-25 10:03:16 +0000
commitda0fa3b3e071fca3f1287439ec8fb56f430166fd (patch)
tree928f47c30e231832f8d3eec4d2869be495ce6183 /sys/modules/geom
parenta2d24671eab600f642f4ff91d05a29f9cc8de794 (diff)
downloadFreeBSD-src-da0fa3b3e071fca3f1287439ec8fb56f430166fd.zip
FreeBSD-src-da0fa3b3e071fca3f1287439ec8fb56f430166fd.tar.gz
Add a very simple and small GEOM class - ZERO.
It creates very huge provider (41PB) /dev/gzero. On BIO_READ request it zero-fills bio_data and on BIO_WRITE it does nothing. You can also set kern.geom.zero.clear sysctl to 0 to do nothing even for BIO_READ. I'm using it for performance testing where it is very helpful. MFC after: 3 days
Diffstat (limited to 'sys/modules/geom')
-rw-r--r--sys/modules/geom/geom_zero/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/modules/geom/geom_zero/Makefile b/sys/modules/geom/geom_zero/Makefile
new file mode 100644
index 0000000..43dae09
--- /dev/null
+++ b/sys/modules/geom/geom_zero/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom/zero
+
+KMOD= geom_zero
+SRCS= g_zero.c
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud