aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2017-04-14 17:01:00 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-04-14 17:01:00 +0000
commit9bad09e9a8f414144e53a860942e691f80b48ed8 (patch)
treeeea9e04d05b07a37fcd2378dd7caf619c6ca498e /man
parente8fe3151e2cc17b7567726fb05c1706d9771f2e5 (diff)
downloadsrc-9bad09e9a8f414144e53a860942e691f80b48ed8.tar.gz
src-9bad09e9a8f414144e53a860942e691f80b48ed8.zip
6392 zdb: introduce -V for verbatim import
illumos/illumos-gate@dfd5965f7e43b6a630e5ac86708ae76b4f02cc40 https://github.com/illumos/illumos-gate/commit/dfd5965f7e43b6a630e5ac86708ae76b4f02cc40 https://www.illumos.org/issues/6392 When given a pool name via -e, zdb would attempt an import. If it failed, then it would attempt a verbatim import. This behavior is not always desirable so a -V switch is added to zdb to control the behavior. When specified, a verbatim import is done. Otherwise, the behavior is as it was previously, except no verbatim import is done on failure. https://github.com/zfsonlinux/zfs/commit/a5778ea2427bd340e3b4f697d9b6e1452bd71909 Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Yuri Pankov <yuri.pankov@gmail.com> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed by: Matt Ahrens <mahrens@delphix.com> Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Richard Yao <ryao@gentoo.org>
Notes
Notes: svn path=/vendor/illumos/dist/; revision=316864
Diffstat (limited to 'man')
-rw-r--r--man/man1m/zdb.1m15
1 files changed, 10 insertions, 5 deletions
diff --git a/man/man1m/zdb.1m b/man/man1m/zdb.1m
index 44c1b5848f1c..1bd47bbfa40e 100644
--- a/man/man1m/zdb.1m
+++ b/man/man1m/zdb.1m
@@ -22,7 +22,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl AbcdDFGhiLMPsvX
-.Op Fl e Op Fl p Ar path ...
+.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
.Op Fl I Ar inflight I/Os
.Oo Fl o Ar var Ns = Ns Ar value Oc Ns ...
.Op Fl t Ar txg
@@ -31,7 +31,7 @@
.Op Ar poolname Op Ar object ...
.Nm
.Op Fl AdiPv
-.Op Fl e Op Fl p Ar path ...
+.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
.Op Fl U Ar cache
.Ar dataset Op Ar object ...
.Nm
@@ -45,8 +45,8 @@
.Nm
.Fl m
.Op Fl AFLPX
+.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
.Op Fl t Ar txg
-.Op Fl e Op Fl p Ar path ...
.Op Fl U Ar cache
.Ar poolname Op Ar vdev Op Ar metaslab ...
.Nm
@@ -55,13 +55,13 @@
.Nm
.Fl R
.Op Fl A
-.Op Fl e Op Fl p Ar path ...
+.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
.Op Fl U Ar cache
.Ar poolname vdev Ns : Ns Ar offset Ns : Ns Ar size Ns Op : Ns Ar flags
.Nm
.Fl S
.Op Fl AP
-.Op Fl e Op Fl p Ar path ...
+.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
.Op Fl U Ar cache
.Ar poolname
.Sh DESCRIPTION
@@ -316,6 +316,11 @@ Use a cache file other than
.It Fl v
Enable verbosity.
Specify multiple times for increased verbosity.
+.It Fl V
+Attempt verbatim import.
+This mimics the behavior of the kernel when loading a pool from a cachefile.
+Only usable with
+.Fl e .
.It Fl X
Attempt
.Qq extreme