Date: Sat, 15 Dec 2012 00:14:28 -0000 From: "Steven Hartland" <smh@freebsd.org> To: "Pawel Jakub Dawidek" <pjd@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r244188 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Message-ID: <2684CC03E9F64F72B9F723411F32DF68@multiplay.co.uk> References: <201212131739.qBDHd8RR083616@svn.freebsd.org> <20121214220547.GC1411@garage.freebsd.pl>
index | next in thread | previous in thread | raw e-mail
----- Original Message ----- From: "Pawel Jakub Dawidek" <pjd@FreeBSD.org> On Thu, Dec 13, 2012 at 05:39:08PM +0000, Steven Hartland wrote: >> Author: smh >> Date: Thu Dec 13 17:39:07 2012 >> New Revision: 244188 >> URL: http://svnweb.freebsd.org/changeset/base/244188 >> >> Log: >> Added vfs.zfs.vdev.trim_on_init sysctl which allows full vdev trim on >> initialisation to be enabled (1) / disabled (0) defaults to enabled. >> >> This is useful for devices which have a slow trim speed and are either >> new or have otherwise already been wiped e.g. secure erase. >> ... >> +static boolean_t vdev_trim_on_init = B_TRUE; >> +SYSCTL_DECL(_vfs_zfs_vdev);> >> +SYSCTL_INT(_vfs_zfs_vdev, OID_AUTO, trim_on_init, CTLFLAG_RW, >> + &vdev_trim_on_init, 0, "Enable/disable full vdev trim on initialisation"); > > I'd also make it loader tunable. Will look into that, worth doing the other SYSCTL only ones at the same time? Regards Stevehome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2684CC03E9F64F72B9F723411F32DF68>
