xfs
[Top] [All Lists]

[PATCH 2/2] xfs_quota: fix up timer command help

To: xfs@xxxxxxxxxxx
Subject: [PATCH 2/2] xfs_quota: fix up timer command help
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Wed, 27 Jan 2016 16:51:30 -0600
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <56A9497C.9070400@xxxxxxxxxxx>
References: <56A9497C.9070400@xxxxxxxxxxx>
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
The timer command help output suggests that either default, or a
specific ID, can be specified, but this is not the case.  Timers
are fs-wide for each quota type, not specific to the user.  So
remove the "-d|id|name" from the help output.  Also remove
"get" from the description, because it only sets these timers;
"state" returns their values.  Well actually just one of them,
but that's a different problem...

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

diff --git a/quota/edit.c b/quota/edit.c
index c55fa1a..6146f7e 100644
--- a/quota/edit.c
+++ b/quota/edit.c
@@ -701,8 +701,8 @@ edit_init(void)
        timer_cmd.cfunc = timer_f;
        timer_cmd.argmin = 2;
        timer_cmd.argmax = -1;
-       timer_cmd.args = _("[-bir] [-gpu] value -d|id|name");
-       timer_cmd.oneline = _("get/set quota enforcement timeouts");
+       timer_cmd.args = _("[-bir] [-gpu] value");
+       timer_cmd.oneline = _("set quota enforcement timeouts");
        timer_cmd.help = timer_help;
 
        warn_cmd.name = "warn";

<Prev in Thread] Current Thread [Next in Thread>