]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_db: Fix dquot command docs
authorEric Sandeen <sandeen@redhat.com>
Sun, 28 Feb 2016 23:46:31 +0000 (10:46 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 28 Feb 2016 23:46:31 +0000 (10:46 +1100)
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/dquot.c
man/man8/xfs_db.8

index 3adde3b657c32f6c4f6e1bc695b7d51800e0290d..47740f0a679416e41b3cf0fa33d91047778b0f08 100644 (file)
 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 },
index 5745b224263512d81e98fd3a57b4eda1a7e71f49..ff8f862d9515c5ca4f0fcad444b510fa17698a69 100644 (file)
@@ -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.