summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-19 09:24:12 +0000
committerphk <phk@FreeBSD.org>2002-04-19 09:24:12 +0000
commit4509f96cc589342df08f0237df6f9add315b10dc (patch)
tree78bdb30d9090fbc82c33e35fbf8e451f4f7f28f1 /sys/geom/geom.h
parenta274092cf658e3818cf7022f777b07ae66e89fe5 (diff)
downloadFreeBSD-src-4509f96cc589342df08f0237df6f9add315b10dc.zip
FreeBSD-src-4509f96cc589342df08f0237df6f9add315b10dc.tar.gz
Make kernel dumps work with GEOM.
Notice that if the device on which the dump is set is destroyed for any reason, the dump setting is lost. This in particular will happen in the case of spoilage. For instance if you set dump on ad0s1b and open ad0 for writing, ad0s* will be spoilt and the dump setting lost. See geom(4) for more about spoiling. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r--sys/geom/geom.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h
index 6dfe745..e4c37b7 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -229,6 +229,11 @@ struct g_ioctl {
#ifdef _KERNEL
+struct g_kerneldump {
+ off_t offset;
+ off_t length;
+};
+
MALLOC_DECLARE(M_GEOM);
static __inline void *
OpenPOWER on IntegriCloud