diff options
author | pjd <pjd@FreeBSD.org> | 2011-05-08 09:29:21 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-05-08 09:29:21 +0000 |
commit | 2b4c44d1c234d2e9eb67e025a20d80e9e925eb99 (patch) | |
tree | 999591e1f1966056ee08bee1e3ee162c07cbb430 /sys/geom/eli | |
parent | ca83b3035dd29544f0d84f110b194173f580e9d9 (diff) | |
download | FreeBSD-src-2b4c44d1c234d2e9eb67e025a20d80e9e925eb99.zip FreeBSD-src-2b4c44d1c234d2e9eb67e025a20d80e9e925eb99.tar.gz |
Export GELI class version via sysctl kern.geom.eli.version.
MFC after: 1 week
Diffstat (limited to 'sys/geom/eli')
-rw-r--r-- | sys/geom/eli/g_eli.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index cee4166..74c70ff 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -57,6 +57,9 @@ MALLOC_DEFINE(M_ELI, "eli data", "GEOM_ELI Data"); SYSCTL_DECL(_kern_geom); SYSCTL_NODE(_kern_geom, OID_AUTO, eli, CTLFLAG_RW, 0, "GEOM_ELI stuff"); +static int g_eli_version = G_ELI_VERSION; +SYSCTL_INT(_kern_geom_eli, OID_AUTO, version, CTLFLAG_RD, &g_eli_version, 0, + "GELI version"); int g_eli_debug = 0; TUNABLE_INT("kern.geom.eli.debug", &g_eli_debug); SYSCTL_INT(_kern_geom_eli, OID_AUTO, debug, CTLFLAG_RW, &g_eli_debug, 0, |