From: Eric Sandeen <sandeen@redhat.com>
To: xfs@oss.sgi.com
Subject: [PATCH] xfs_db: Fix dquot command docs
Date: Fri, 19 Feb 2016 14:25:13 -0600 [thread overview]
Message-ID: <56C77A29.7070806@redhat.com> (raw)
The dquot command in xfs_db takes quota type as well as an ID.
Fix the usage & man page to reflect this.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/db/dquot.c b/db/dquot.c
index 3adde3b..c4d0bff 100644
--- a/db/dquot.c
+++ b/db/dquot.c
@@ -33,9 +33,11 @@
static int dquot_f(int argc, char **argv);
static void dquot_help(void);
-static const cmdinfo_t dquot_cmd =
- { "dquot", NULL, dquot_f, 1, 2, 1, N_("[projid|gid|uid]"),
- N_("set current address to project, group or user quota block"), dquot_help };
+static const cmdinfo_t dquot_cmd = {
+ "dquot", NULL, dquot_f, 1, 2, 1, N_("[-g|-p|-u] id"),
+N_("set current address to a group, project or user quota block for given ID"),
+ dquot_help,
+};
const field_t dqblk_hfld[] = {
{ "", FLDT_DQBLK, OI(0), C1, 0, TYP_NONE },
diff --git a/man/man8/xfs_db.8 b/man/man8/xfs_db.8
index 5745b22..6f0c424 100644
--- a/man/man8/xfs_db.8
+++ b/man/man8/xfs_db.8
@@ -444,8 +444,8 @@ If no value is given for
.IR flagbits ,
print the current debug option bits. These are for the use of the implementor.
.TP
-.BI "dquot [" projectid_or_userid ]
-Set current address to a project or user quota block.
+.BI "dquot [" \-g | \-p | \-u ] " id"
+Set current address to a group, project or user quota block for the given ID. Defaults to user quota.
.TP
.BI "echo [" arg "] ..."
Echo the arguments to the output.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next reply other threads:[~2016-02-19 20:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-19 20:25 Eric Sandeen [this message]
2016-02-22 9:03 ` [PATCH] xfs_db: Fix dquot command docs Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56C77A29.7070806@redhat.com \
--to=sandeen@redhat.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.