]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: Do not trash user limits when processing orphan list
authorJan Kara <jack@suse.cz>
Mon, 23 Aug 2021 15:41:25 +0000 (17:41 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 3 Sep 2021 18:34:58 +0000 (14:34 -0400)
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 <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/super.c

index 434261319b80058ecb08f070042e81021faca5cb..123813be718394b17b3579f3879ddaa23bfbff25 100644 (file)
@@ -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;
        }