- Add sysctl for sizeof(znode_t), which will be used by fstat(1).

Approved by:	pjd (mentor)
This commit is contained in:
Ulf Lilleengen 2007-11-02 00:35:05 +00:00
parent ed741d4e2d
commit 6509baf851
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173268
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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