@@ -413,7 +413,7 @@ get_usage(zpool_help_t idx)
413
413
"[<device> ...]\n" ));
414
414
case HELP_STATUS :
415
415
return (gettext ("\tstatus [--power] [-c [script1,script2,...]] "
416
- "[-igLpPstvxD] [-T d|u] [pool] ... \n"
416
+ "[-DegiLpPstvx] [-T d|u] [pool] ...\n"
417
417
"\t [interval [count]]\n" ));
418
418
case HELP_UPGRADE :
419
419
return (gettext ("\tupgrade\n"
@@ -9177,22 +9177,22 @@ status_callback(zpool_handle_t *zhp, void *data)
9177
9177
}
9178
9178
9179
9179
/*
9180
- * zpool status [-c [script1,script2,...]] [-igLpPstvx ] [--power] [-T d|u] ...
9180
+ * zpool status [-c [script1,script2,...]] [-DegiLpPstvx ] [--power] [-T d|u] ...
9181
9181
* [pool] [interval [count]]
9182
9182
*
9183
9183
* -c CMD For each vdev, run command CMD
9184
+ * -D Display dedup status (undocumented)
9184
9185
* -e Display only unhealthy vdevs
9185
- * -i Display vdev initialization status.
9186
9186
* -g Display guid for individual vdev name.
9187
+ * -i Display vdev initialization status.
9187
9188
* -L Follow links when resolving vdev path name.
9188
9189
* -p Display values in parsable (exact) format.
9189
9190
* -P Display full path for vdev name.
9190
9191
* -s Display slow IOs column.
9191
- * -v Display complete error logs
9192
- * -x Display only pools with potential problems
9193
- * -D Display dedup status (undocumented)
9194
9192
* -t Display vdev TRIM status.
9195
9193
* -T Display a timestamp in date(1) or Unix format
9194
+ * -v Display complete error logs
9195
+ * -x Display only pools with potential problems
9196
9196
* --power Display vdev enclosure slot power status
9197
9197
*
9198
9198
* Describes the health status of all pools or some subset.
@@ -9213,7 +9213,7 @@ zpool_do_status(int argc, char **argv)
9213
9213
};
9214
9214
9215
9215
/* check options */
9216
- while ((c = getopt_long (argc , argv , "c:eigLpPsvxDtT: " , long_options ,
9216
+ while ((c = getopt_long (argc , argv , "c:DegiLpPstT:vx " , long_options ,
9217
9217
NULL )) != -1 ) {
9218
9218
switch (c ) {
9219
9219
case 'c' :
@@ -9240,15 +9240,18 @@ zpool_do_status(int argc, char **argv)
9240
9240
}
9241
9241
cmd = optarg ;
9242
9242
break ;
9243
+ case 'D' :
9244
+ cb .cb_dedup_stats = B_TRUE ;
9245
+ break ;
9243
9246
case 'e' :
9244
9247
cb .cb_print_unhealthy = B_TRUE ;
9245
9248
break ;
9246
- case 'i' :
9247
- cb .cb_print_vdev_init = B_TRUE ;
9248
- break ;
9249
9249
case 'g' :
9250
9250
cb .cb_name_flags |= VDEV_NAME_GUID ;
9251
9251
break ;
9252
+ case 'i' :
9253
+ cb .cb_print_vdev_init = B_TRUE ;
9254
+ break ;
9252
9255
case 'L' :
9253
9256
cb .cb_name_flags |= VDEV_NAME_FOLLOW_LINKS ;
9254
9257
break ;
@@ -9261,21 +9264,18 @@ zpool_do_status(int argc, char **argv)
9261
9264
case 's' :
9262
9265
cb .cb_print_slow_ios = B_TRUE ;
9263
9266
break ;
9264
- case 'v' :
9265
- cb .cb_verbose = B_TRUE ;
9266
- break ;
9267
- case 'x' :
9268
- cb .cb_explain = B_TRUE ;
9269
- break ;
9270
- case 'D' :
9271
- cb .cb_dedup_stats = B_TRUE ;
9272
- break ;
9273
9267
case 't' :
9274
9268
cb .cb_print_vdev_trim = B_TRUE ;
9275
9269
break ;
9276
9270
case 'T' :
9277
9271
get_timestamp_arg (* optarg );
9278
9272
break ;
9273
+ case 'v' :
9274
+ cb .cb_verbose = B_TRUE ;
9275
+ break ;
9276
+ case 'x' :
9277
+ cb .cb_explain = B_TRUE ;
9278
+ break ;
9279
9279
case POWER_OPT :
9280
9280
cb .cb_print_power = B_TRUE ;
9281
9281
break ;
@@ -9315,7 +9315,6 @@ zpool_do_status(int argc, char **argv)
9315
9315
9316
9316
if (cb .vcdl != NULL )
9317
9317
free_vdev_cmd_data_list (cb .vcdl );
9318
-
9319
9318
if (argc == 0 && cb .cb_count == 0 )
9320
9319
(void ) fprintf (stderr , gettext ("no pools available\n" ));
9321
9320
else if (cb .cb_explain && cb .cb_first && cb .cb_allpools )
0 commit comments