svn commit: r246675 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed Feb 13 22:07:55 UTC 2013
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
>
> Log:
> MFV r246394:
> Add tunable to allow block allocation on degraded vdevs.
>
> Illumos ZFS issues:
> 3507 Tunable to allow block allocation even on degraded vdevs
>
> References:
> https://www.illumos.org/issues/3507
>
> MFC after: 2 weeks
>
> Modified:
> head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
> Directory Properties:
> head/sys/cddl/contrib/opensolaris/ (props changed)
>
> Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
> ==============================================================================
> --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c Mon Feb 11 13:57:03 2013 (r246674)
> +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c Mon Feb 11 13:59:57 2013 (r246675)
> @@ -21,6 +21,7 @@
> /*
> * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
> * Copyright (c) 2012 by Delphix. All rights reserved.
> + * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
> */
>
> #include <sys/zfs_context.h>
> @@ -97,6 +98,15 @@ int metaslab_prefetch_limit = SPA_DVAS_P
> int metaslab_smo_bonus_pct = 150;
>
> /*
> + * Should we be willing to write data to degraded vdevs?
> + */
> +boolean_t zfs_write_to_degraded = 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);
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am! http://tupytaj.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20130213/336931fc/attachment.sig>
More information about the svn-src-head
mailing list