Skip to content

Commit 423b21b

Browse files
author
Paul Dagnelie
committed
Print parity level with name
Signed-off-by: Paul Dagnelie <[email protected]>
1 parent 8c55296 commit 423b21b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/libzfs/libzfs_pool.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4586,9 +4586,11 @@ zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv,
45864586
path = type;
45874587

45884588
/*
4589-
* If it's a raidz device, we need to stick in the parity level.
4589+
* If it's a raidz or anyraid device, we need to stick in the
4590+
* parity level.
45904591
*/
4591-
if (strcmp(path, VDEV_TYPE_RAIDZ) == 0) {
4592+
if (strcmp(path, VDEV_TYPE_RAIDZ) == 0 ||
4593+
strcmp(path, VDEV_TYPE_ANYRAID) == 0) {
45924594
value = fnvlist_lookup_uint64(nv, ZPOOL_CONFIG_NPARITY);
45934595
(void) snprintf(buf, sizeof (buf), "%s%llu", path,
45944596
(u_longlong_t)value);

0 commit comments

Comments
 (0)