[XFS] Catch errors resetting quota flags.
Warn to the syslog if we fail to reset the quota flags in the superblock when a quota check fails. SGI-PV: 980084 SGI-Modid: xfs-linux-melb:xfs-kern:30789a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Niv Sardi <xaiki@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
committed by
Lachlan McIlroy
parent
53aa7915d6
commit
31d5577b35
@@ -1927,7 +1927,10 @@ xfs_qm_quotacheck(
|
|||||||
ASSERT(mp->m_quotainfo != NULL);
|
ASSERT(mp->m_quotainfo != NULL);
|
||||||
ASSERT(xfs_Gqm != NULL);
|
ASSERT(xfs_Gqm != NULL);
|
||||||
xfs_qm_destroy_quotainfo(mp);
|
xfs_qm_destroy_quotainfo(mp);
|
||||||
(void)xfs_mount_reset_sbqflags(mp);
|
if (xfs_mount_reset_sbqflags(mp)) {
|
||||||
|
cmn_err(CE_WARN, "XFS quotacheck %s: "
|
||||||
|
"Failed to reset quota flags.", mp->m_fsname);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
cmn_err(CE_NOTE, "XFS quotacheck %s: Done.", mp->m_fsname);
|
cmn_err(CE_NOTE, "XFS quotacheck %s: Done.", mp->m_fsname);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user