From a0627aed5a1159bb5cc2e4399b2adcfd2f8c0147 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Mon, 23 Aug 2021 17:41:25 +0200 Subject: [PATCH] e2fsck: Do not trash user limits when processing orphan list When e2fsck was loading quotas to process orphan list, it was loading only quota usage. However subsequent quota writeout has effectively overwritten quota limits, loosing them forever. Make sure quota limits are preserved over orphan replay. Signed-off-by: Jan Kara Signed-off-by: Theodore Ts'o --- e2fsck/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2fsck/super.c b/e2fsck/super.c index 4342613..123813b 100644 --- a/e2fsck/super.c +++ b/e2fsck/super.c @@ -282,7 +282,7 @@ static errcode_t e2fsck_read_all_quotas(e2fsck_t ctx) continue; retval = quota_read_all_dquots(ctx->qctx, qf_ino, qtype, - QREAD_USAGE); + QREAD_USAGE | QREAD_LIMITS); if (retval) break; } -- 1.8.3.1