We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be9fa2 commit bfa46f6Copy full SHA for bfa46f6
cmd/zpool/zpool_main.c
@@ -12747,11 +12747,13 @@ zpool_do_get(int argc, char **argv)
12747
12748
if (strcmp(argv[1], "root") == 0)
12749
vdev = strdup("root-0");
12750
- else
12751
- vdev = strdup(argv[1]);
12752
12753
/* ... and the rest are vdev names */
12754
- cb.cb_vdevs.cb_names = &vdev;
+ if (vdev == NULL)
+ cb.cb_vdevs.cb_names = argv + 1;
+ else
12755
+ cb.cb_vdevs.cb_names = &vdev;
12756
+
12757
cb.cb_vdevs.cb_names_count = argc - 1;
12758
cb.cb_type = ZFS_TYPE_VDEV;
12759
argc = 1; /* One pool to process */
0 commit comments