Skip to content

Commit 95bcd51

Browse files
storkonebehlendorf
authored andcommitted
Illumos #1946: incorrect formatting when listing output of multiple pools with zpool iostat -v
Reviewed by: Richard Elling <richard.elling@richardelling.com> Reviewed by: Joshua M. Clulow <josh@sysmgr.org> Approved by: Richard Lowe <richlowe@richlowe.net> Reference to Illumos issue: https://www.illumos.org/issues/1946 Ported by: Richard Yao <ryao@cs.stonybrook.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
1 parent 187632d commit 95bcd51

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/zpool/zpool_main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
/*
2323
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24+
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
25+
* Copyright (c) 2011 by Delphix. All rights reserved.
26+
* Copyright (c) 2012 by Frederik Wessels. All rights reserved.
2427
*/
2528

2629
#include <assert.h>
@@ -2236,7 +2239,8 @@ get_namewidth(zpool_handle_t *zhp, void *data)
22362239
if (!cb->cb_verbose)
22372240
cb->cb_namewidth = strlen(zpool_get_name(zhp));
22382241
else
2239-
cb->cb_namewidth = max_width(zhp, nvroot, 0, 0);
2242+
cb->cb_namewidth = max_width(zhp, nvroot, 0,
2243+
cb->cb_namewidth);
22402244
}
22412245

22422246
/*

0 commit comments

Comments
 (0)