summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2007-11-02 00:35:05 +0000
committerlulf <lulf@FreeBSD.org>2007-11-02 00:35:05 +0000
commitf39a9d39ee83c56f0b22596acd66a9bb0416abf6 (patch)
tree947048a67d6e9ff44030daf936efdb6a6ffc369e /sys/contrib
parentcf14784fcb6abf01e302afe1079b36a532dc3ab3 (diff)
downloadFreeBSD-src-f39a9d39ee83c56f0b22596acd66a9bb0416abf6.zip
FreeBSD-src-f39a9d39ee83c56f0b22596acd66a9bb0416abf6.tar.gz
- Add sysctl for sizeof(znode_t), which will be used by fstat(1).
Approved by: pjd (mentor)
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c b/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
index 329928d..96a3c2f 100644
--- a/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
+++ b/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
@@ -57,6 +57,10 @@
#include <sys/zfs_znode.h>
#include <sys/refcount.h>
+/* Used by fstat(1). */
+SYSCTL_INT(_debug_sizeof, OID_AUTO, znode, CTLFLAG_RD, 0, sizeof(znode_t),
+ "sizeof(znode_t)");
+
/*
* Functions needed for userland (ie: libzpool) are not put under
* #ifdef_KERNEL; the rest of the functions have dependencies
OpenPOWER on IntegriCloud