Message ID | 158947539434.2482564.14967976160614785881.stgit@magnolia (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | xfs_repair: check quota counters | expand |
diff --git a/repair/xfs_repair.c b/repair/xfs_repair.c index 8fbd3649..9ab3cafa 100644 --- a/repair/xfs_repair.c +++ b/repair/xfs_repair.c @@ -1100,10 +1100,13 @@ _("Warning: project quota information would be cleared.\n" dsb = sbp->b_addr; - if (be16_to_cpu(dsb->sb_qflags) & XFS_ALL_QUOTA_CHKD) { + if (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_CHKD) { do_warn(_("Note - quota info will be regenerated on next " "quota mount.\n")); - dsb->sb_qflags &= cpu_to_be16(~XFS_ALL_QUOTA_CHKD); + dsb->sb_qflags &= cpu_to_be16(~(XFS_UQUOTA_CHKD | + XFS_GQUOTA_CHKD | + XFS_PQUOTA_CHKD | + XFS_OQUOTA_CHKD)); } if (copied_sunit) {