]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Handle all of usr/grp/prj quota types.
authorNathan Scott <nathans@sgi.com>
Wed, 30 Mar 2005 05:59:03 +0000 (05:59 +0000)
committerNathan Scott <nathans@sgi.com>
Wed, 30 Mar 2005 05:59:03 +0000 (05:59 +0000)
Merge of master-melb:xfs-cmds:21995a by kenmcd.

logprint/log_print_all.c

index 850b1c05d4a7195146ab31277cb2f5a0806c88fb..df9a7b326624fa285727164ab43b6ef222a46d37 100644 (file)
@@ -211,14 +211,16 @@ xlog_recover_print_quotaoff(
        xlog_recover_item_t     *item)
 {
        xfs_qoff_logformat_t    *qoff_f;
-       char                    str[20];
+       char                    str[32] = { 0 };
 
        qoff_f = (xfs_qoff_logformat_t *)item->ri_buf[0].i_addr;
        ASSERT(qoff_f);
        if (qoff_f->qf_flags & XFS_UQUOTA_ACCT)
-               strcpy(str, "USER QUOTA");
+               strcat(str, "USER QUOTA");
        if (qoff_f->qf_flags & XFS_GQUOTA_ACCT)
                strcat(str, "GROUP QUOTA");
+       if (qoff_f->qf_flags & XFS_PQUOTA_ACCT)
+               strcat(str, "PROJECT QUOTA");
        printf("\tQUOTAOFF: #regs:%d   type:%s\n",
               qoff_f->qf_size, str);
 }