From 35a357a9efe1be317d41f926732e38e18644a830 Mon Sep 17 00:00:00 2001 From: Don Brady Date: Fri, 3 Feb 2017 15:18:28 -0700 Subject: OpenZFS 6866 - zdb -l non-zero status if no label Authored by: Yuri Pankov Reviewed by: Matthew Ahrens Reviewed by: John Kennedy Reviewed-by: Brian Behlendorf Reviewed-by: George Melikov Ported-by: Don Brady 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. --- man/man8/zdb.8 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'man/man8') 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 -- cgit v1.2.3