Skip to content

Commit

Permalink
Add sysctls for dnode block and indirect block shifts.
Browse files Browse the repository at this point in the history
MFC after:	2 weeks
  • Loading branch information
amotin committed Feb 9, 2018
1 parent a39494d commit a7e83cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ static dnode_phys_t dnode_phys_zero;
int zfs_default_bs = SPA_MINBLOCKSHIFT;
int zfs_default_ibs = DN_MAX_INDBLKSHIFT;

SYSCTL_DECL(_vfs_zfs);
SYSCTL_INT(_vfs_zfs, OID_AUTO, default_bs, CTLFLAG_RWTUN,
&zfs_default_bs, 0, "Default dnode block shift");
SYSCTL_INT(_vfs_zfs, OID_AUTO, default_ibs, CTLFLAG_RWTUN,
&zfs_default_ibs, 0, "Default dnode indirect block shift");

#ifdef illumos
static kmem_cbrc_t dnode_move(void *, void *, size_t, void *);
#endif
Expand Down

0 comments on commit a7e83cc

Please sign in to comment.