]> granicus.if.org Git - zfs/commitdiff
zpool: trim -p is not a valid option
authorloli10K <loli10K@users.noreply.github.com>
Fri, 24 May 2019 16:40:46 +0000 (18:40 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 May 2019 16:40:46 +0000 (09:40 -0700)
This commit removes the documented but not handled "-p" option from
zpool(8) help message.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Chris Dunlop <chris@onthe.net.au>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8781

cmd/zpool/zpool_main.c

index 1dac4b167f7ce2e4575dfdc2ffc42cec63e493bd..f490675cd60e1792fc2b4204cadac6a944391e31 100644 (file)
@@ -30,6 +30,7 @@
  * Copyright (c) 2017 Datto Inc.
  * Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
  * Copyright (c) 2017, Intel Corporation.
+ * Copyright (c) 2019, loli10K <ezomori.nozomu@gmail.com>
  */
 
 #include <assert.h>
@@ -384,7 +385,7 @@ get_usage(zpool_help_t idx)
        case HELP_RESILVER:
                return (gettext("\tresilver <pool> ...\n"));
        case HELP_TRIM:
-               return (gettext("\ttrim [-dp] [-r <rate>] [-c | -s] <pool> "
+               return (gettext("\ttrim [-d] [-r <rate>] [-c | -s] <pool> "
                    "[<device> ...]\n"));
        case HELP_STATUS:
                return (gettext("\tstatus [-c [script1,script2,...]] "