diff options
author | Don Brady <[email protected]> | 2017-02-03 15:18:28 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-02-03 14:18:28 -0800 |
commit | 35a357a9efe1be317d41f926732e38e18644a830 (patch) | |
tree | ae30539ee4887ef13c05b54c0cf7ac0f75feaa0c /man/man8/zdb.8 | |
parent | dffaa61ded206d620a0db88231e56aece56b8422 (diff) |
OpenZFS 6866 - zdb -l non-zero status if no label
Authored by: Yuri Pankov <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: John Kennedy <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Ported-by: Don Brady <[email protected]>
OpenZFS-issue: https://www.illumos.org/issues/6866
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/3e4fae5
Closes #5730
Porting Notes:
- Omitted the illumos-specific `/dev/dsk` and `/dev/rdsk`
path conversions since they don't apply on linux.
Diffstat (limited to 'man/man8/zdb.8')
-rw-r--r-- | man/man8/zdb.8 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/man/man8/zdb.8 b/man/man8/zdb.8 index 6696a2fe0..02137e97f 100644 --- a/man/man8/zdb.8 +++ b/man/man8/zdb.8 @@ -12,8 +12,9 @@ .\" .\" Copyright 2012, Richard Lowe. .\" Copyright (c) 2012, 2016 by Delphix. All rights reserved. +.\" Copyright 2016 Nexenta Systems, Inc. .\" -.TH "ZDB" "8" "Feb 4, 2016" "" "" +.TH "ZDB" "8" "April 9, 2016" "" "" .SH "NAME" \fBzdb\fR - Display zpool debugging and consistency information @@ -39,7 +40,7 @@ \fBzdb\fR -S [-AP] [-e [-p \fIpath\fR...]] [-U \fIcache\fR] \fIpoolname\fR .P -\fBzdb\fR -l [-uA] \fIdevice\fR +\fBzdb\fR -l [-Aqu] \fIdevice\fR .P \fBzdb\fR -C [-A] [-U \fIcache\fR] @@ -176,8 +177,13 @@ transaction type. .ad .sp .6 .RS 4n -Display the vdev labels from the specified device. If the \fB-u\fR option is -also specified, also display the uberblocks on this device. +Read the vdev labels from the specified device. \fBzdb -l\fR will return 0 if +valid label was found, 1 if error occured, and 2 if no valid labels were found. +.P +If the \fB-u\fR option is also specified, also display the uberblocks on this +device. +.P +If the \fB-q\fR option is also specified, don't print the labels. .RE .sp |