diff options
author | pjd <pjd@FreeBSD.org> | 2005-07-25 10:03:16 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-07-25 10:03:16 +0000 |
commit | da0fa3b3e071fca3f1287439ec8fb56f430166fd (patch) | |
tree | 928f47c30e231832f8d3eec4d2869be495ce6183 /sys/modules | |
parent | a2d24671eab600f642f4ff91d05a29f9cc8de794 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/modules/geom/geom_zero/Makefile | 8 |
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> |