From owner-svn-src-all@FreeBSD.ORG Wed Feb 13 22:07:54 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EF13C1FD; Wed, 13 Feb 2013 22:07:54 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB41265; Wed, 13 Feb 2013 22:07:54 +0000 (UTC) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) by mail.dawidek.net (Postfix) with ESMTPSA id 627AD41E; Wed, 13 Feb 2013 23:04:57 +0100 (CET) Date: Wed, 13 Feb 2013 23:08:48 +0100 From: Pawel Jakub Dawidek To: Martin Matuska Subject: Re: svn commit: r246675 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Message-ID: <20130213220847.GA1375@garage.freebsd.pl> References: <201302111359.r1BDxvT4016360@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <201302111359.r1BDxvT4016360@svn.freebsd.org> X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 22:07:55 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 11, 2013 at 01:59:57PM +0000, Martin Matuska wrote: > Author: mm > Date: Mon Feb 11 13:59:57 2013 > New Revision: 246675 > URL: http://svnweb.freebsd.org/changeset/base/246675 >=20 > Log: > MFV r246394: > Add tunable to allow block allocation on degraded vdevs. > =20 > Illumos ZFS issues: > 3507 Tunable to allow block allocation even on degraded vdevs > =20 > References: > https://www.illumos.org/issues/3507 > =20 > MFC after: 2 weeks >=20 > Modified: > head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c > Directory Properties: > head/sys/cddl/contrib/opensolaris/ (props changed) >=20 > Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c Mon Fe= b 11 13:57:03 2013 (r246674) > +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c Mon Fe= b 11 13:59:57 2013 (r246675) > @@ -21,6 +21,7 @@ > /* > * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights re= served. > * Copyright (c) 2012 by Delphix. All rights reserved. > + * Copyright (c) 2013 by Saso Kiselkov. All rights reserved. > */ > =20 > #include > @@ -97,6 +98,15 @@ int metaslab_prefetch_limit =3D SPA_DVAS_P > int metaslab_smo_bonus_pct =3D 150; > =20 > /* > + * Should we be willing to write data to degraded vdevs? > + */ > +boolean_t zfs_write_to_degraded =3D B_FALSE; > +SYSCTL_INT(_vfs_zfs, OID_AUTO, write_to_degraded, CTLFLAG_RW, Please use CTLFLAG_RWTUN flag here. > + &zfs_write_to_degraded, 0, > + "Allow writing data to degraded vdevs"); BTW. Those two lines fit into 80 chars just fine. > +TUNABLE_INT("vfs.zfs.write_to_degraded", &zfs_write_to_degraded); --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --SUOF0GtieIMvvwua Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEcDu8ACgkQForvXbEpPzSJKQCgyBIo0ByjUPM/NgXv9gxqaM5K lzEAn0a2pjOTlPMjRM+70kHZtXMbhg9Y =jfE4 -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--