diff options
author | lulf <lulf@FreeBSD.org> | 2007-11-02 00:35:05 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2007-11-02 00:35:05 +0000 |
commit | f39a9d39ee83c56f0b22596acd66a9bb0416abf6 (patch) | |
tree | 947048a67d6e9ff44030daf936efdb6a6ffc369e /sys/cddl/contrib | |
parent | cf14784fcb6abf01e302afe1079b36a532dc3ab3 (diff) | |
download | FreeBSD-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/cddl/contrib')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c index 329928d..96a3c2f 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c +++ b/sys/cddl/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 |