]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
7280 Allow changing global libzpool variables in zdb and ztest through command line
authorAndriy Gapon <avg@FreeBSD.org>
Fri, 14 Apr 2017 16:53:34 +0000 (16:53 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Fri, 14 Apr 2017 16:53:34 +0000 (16:53 +0000)
commitbe0769e638de9f7208df5298f84ff001eef85989
treec593e44f98357661248cf3b789d01332c69b5c6b
parent1d381d5c2c69adaa66932575eb71a1b30d12f572
7280 Allow changing global libzpool variables in zdb and ztest through command line

illumos/illumos-gate@0e60744c982adecd0a1f146f5637475d07ab1069
https://github.com/illumos/illumos-gate/commit/0e60744c982adecd0a1f146f5637475d07ab1069

https://www.illumos.org/issues/7280
  zdb is very handy for diagnosing problems with a pool in a safe and
  quick way. When a pool is in a bad shape, we often want to disable some
  fail-safes, or adjust some tunables in order to open them. In the
  kernel, this is done by changing public variables in mdb. The goal of
  this feature is to add the same capability to zdb and ztest, so that
  they can change libzpool tuneables from the command line.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Pavel Zakharov <pavel.zakharov@delphix.com>
cmd/zdb/zdb.c
cmd/ztest/ztest.c
lib/libzpool/common/sys/zfs_context.h
lib/libzpool/common/util.c
man/man1m/zdb.1m