ZFS v28 and zil_disable

Scot Hetzel swhetzel at gmail.com
Sat Jan 1 00:17:10 UTC 2011


On Fri, Dec 31, 2010 at 4:00 PM, Chris Forgeron <cforgeron at acsi.ca> wrote:
> BTW, I'm noticing the removal of vfs.zfs.zil_disable as well - It's not listed as a sysctl when I check vfs.zfs, but I see it's still in the source code;
>
> In usr/src/sys/cddl/ :
> # grep -r zil_disable *
> cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zil.h.orig:extern int zil_disable;
> cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c.orig:int zil_disable = 0;      /* disable intent logging */
> cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c.orig:TUNABLE_INT("vfs.zfs.zil_disable", &zil_disable);
> cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c.orig:SYSCTL_INT(_vfs_zfs, OID_AUTO, zil_disable, CTLFLAG_RW, &zil_disable, 0,
> cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c.orig:   if (zil_disable) {
> cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c.orig:         if (bp->bio_cmd == BIO_FLUSH && !zil_disable)
>
>
All the files above show that the original files (*.orig) have the zil_disable.

Your grep of the sources shows that zil_disable was removed from
zil.h, zil.c, zfs_vfsops.c and zvol.c.  I looked at pjd's perforce
repository and found that zil_disable was renamed to
zil_replay_disable.

Scot


More information about the freebsd-stable mailing list