From: François Tigeot Date: Wed, 14 Dec 2011 13:11:25 +0000 (+0100) Subject: Use a sysctl to show if VFS accounting is enabled X-Git-Tag: v3.0.0~385 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/77ef6007a392b6e3a1be00d8a05acccbf10137d9 Use a sysctl to show if VFS accounting is enabled * Both the loader tunable and the sysctl are now called vfs.accounting_enabled --- diff --git a/sys/kern/vfs_quota.c b/sys/kern/vfs_quota.c index 4f7b88b2b6..f4c02461dc 100644 --- a/sys/kern/vfs_quota.c +++ b/sys/kern/vfs_quota.c @@ -110,7 +110,9 @@ gnode_insert(struct mount *mp, gid_t gid) } static int vfs_accounting_enabled = 0; /* global vfs accounting enable */ -TUNABLE_INT("vfs.accounting.enable", &vfs_accounting_enabled); +TUNABLE_INT("vfs.accounting_enabled", &vfs_accounting_enabled); +SYSCTL_INT(_vfs, OID_AUTO, accounting_enabled, CTLFLAG_RD, + &vfs_accounting_enabled, 0, "Enable VFS accounting"); /* initializes global accounting data */ void