]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - db/dquot.c
libxfs: sanitize agcount on load
[thirdparty/xfsprogs-dev.git] / db / dquot.c
index 3adde3b657c32f6c4f6e1bc695b7d51800e0290d..061eca5dfdf7e870203284957f832103d444bed3 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 },
@@ -162,6 +164,7 @@ dquot_f(
        }
        set_cur(&typtab[TYP_DQBLK], XFS_FSB_TO_DADDR(mp, bm.startblock), blkbb,
                DB_RING_IGN, NULL);
+       iocur_top->dquot_buf = 1;
        off_cur(qoff * (int)sizeof(xfs_dqblk_t), sizeof(xfs_dqblk_t));
        ring_add();
        return 0;