Matthew Ahrens 9867e8be2a Illumos 4891 - want zdb option to dump all metadata
4891 want zdb option to dump all metadata
Reviewed by: Sonu Pillai <sonu.pillai@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Garrett D'Amore <garrett@damore.org>

We'd like a way for zdb to dump metadata in a machine-readable
format, so that we can bring that back from a customer site for
in-house diagnosis.  Think of it as a crash dump for zpools,
which can be used for post-mortem analysis of a malfunctioning
pool

References:
  https://www.illumos.org/issues/4891
  https://github.com/illumos/illumos-gate/commit/df15e41

Porting notes:
- [cmd/zdb/zdb.c]
  - a5778ea zdb: Introduce -V for verbatim import
  - In main() getopt 'opt' variable removed and the code was
    brought back in line with illumos.
- [lib/libzpool/kernel.c]
  - 1e33ac1 Fix Solaris thread dependency by using pthreads
  - f0e324f Update utsname support
  - 4d58b69 Fix vn_open/vn_rdwr error handling
  - In vn_open() allocate 'dumppath' on heap instead of stack
  - Properly handle 'dump_fd == -1' error path
  - Free 'realpath' after added vn_dumpdir_code block

Ported-by: kernelOfTruth kerneloftruth@gmail.com
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2016-01-11 11:36:54 -08:00
..
2015-05-11 12:23:16 -07:00
2015-09-11 11:14:38 -07:00
2015-09-11 11:14:38 -07:00
2015-07-10 11:58:37 -07:00
2014-08-01 14:28:05 -07:00
2016-01-08 15:08:19 -08:00
2016-01-08 15:08:19 -08:00
2014-01-07 10:33:11 -08:00
2014-08-01 14:28:05 -07:00
2014-03-04 12:22:24 -08:00
2013-12-10 10:09:27 -08:00
2016-01-08 15:08:19 -08:00
2014-07-29 10:55:29 -07:00
2016-01-08 15:08:19 -08:00
2014-07-29 10:55:29 -07:00
2013-11-04 11:18:14 -08:00
2013-09-04 16:01:24 -07:00
2013-11-04 11:17:48 -08:00
2016-01-08 15:08:19 -08:00
2015-09-19 14:04:14 -07:00
2014-08-13 10:35:00 -07:00
2014-07-30 09:20:35 -07:00
2013-09-04 16:01:24 -07:00
2015-12-30 13:20:12 -08:00
2015-01-06 16:53:24 -08:00
2011-02-10 09:21:43 -08:00
2013-11-04 10:55:25 -08:00
2013-12-18 16:46:35 -08:00
2015-06-25 08:58:16 -07:00
2015-06-09 13:48:02 -07:00
2011-03-02 11:43:50 -08:00
2015-12-04 09:39:20 -08:00
2014-07-28 14:29:58 -07:00
2013-11-04 10:55:25 -08:00
2015-09-04 16:08:14 -07:00
2013-12-18 16:46:35 -08:00
2011-02-10 09:27:21 -08:00
2013-11-04 10:55:25 -08:00
2015-09-19 14:04:14 -07:00
2014-08-11 16:11:43 -07:00
2015-06-09 13:48:02 -07:00
2016-01-08 15:08:19 -08:00
2013-11-04 10:55:25 -08:00
2013-11-05 12:14:56 -08:00
2016-01-08 15:08:19 -08:00
2016-01-08 15:08:19 -08:00
2015-09-03 14:14:55 -07:00