Skip to content

e2fsprogs: fix quota support

Theodore Ts'o linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9quota: add debugging code to print the dquot structurelib/quota/common.h lib/quota/mkquota.c+20 -01 reply
2/9quota: fix e2fsck so we update the quota file correctlylib/quota/mkquota.c+0 -11 reply
3/9quota: fix e2fsck to notice missing quota entrieslib/quota/mkquota.c lib/quota/quotaio.h+18 -11 reply
4/9quota: fix memory leak in quota_compare_and_update()lib/quota/mkquota.c lib/quota/quotaio.c+15 -31 reply
5/9quota: integrate mkquota.h into quotaio.hdebian/rules e2fsck/Makefile.in e2fsck/e2fsck.h +9 more+160 -2421 reply
6/9quota: support storing the quota file handles in the quota contextlib/quota/mkquota.c lib/quota/quotaio.c lib/quota/quotaio.h+66 -211 reply
7/9debugfs: add commands to query the quota informationdebugfs/Makefile.in debugfs/debug_cmds.ct debugfs/debugfs.c +3 more+319 -501 reply
8/9tests: add basic e2fsck regression test for fixing the quota inodetests/f_quota/debugfs-cmds tests/f_quota/expect.0 tests/f_quota/expect.1 +4 more+53 -01 reply
9/9quota: remove warning message that we have fixed the nasty quota bugsmisc/ext4.5.in misc/mke2fs.c misc/tune2fs.c +1 more+0 -212 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchAditya Kali
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] e2fsprogs: fix quota support

I got tired of quota being broken, so this patch set fixes all of the known problems with e2fsck fixing up corrupted quota records. The quota library API is still not what I would call ideal, but cleanups can wait for the 1.43 branch.

Theodore Ts'o (9):
quota: add debugging code to print the dquot structure
quota: fix e2fsck so we update the quota file correctly
quota: fix e2fsck to notice missing quota entries
quota: fix memory leak in quota_compare_and_update()
quota: integrate mkquota.h into quotaio.h
quota: support storing the quota file handles in the quota context
debugfs: add commands to query the quota information
tests: add basic e2fsck regression test for fixing the quota inode
quota: remove warning message that we have fixed the nasty quota bugs

 debian/rules               |   4 -
 debugfs/Makefile.in        | 177 ++++++++++++++++++++++++++++++------------
 debugfs/debug_cmds.ct      |   6 ++
 debugfs/debugfs.c          |   3 +
 debugfs/debugfs.h          |   6 ++
 debugfs/quota.c            | 170 +++++++++++++++++++++++++++++++++++++++++
 debugfs/ro_debug_cmds.ct   |   7 +-
 e2fsck/Makefile.in         | 186 +++++++++++++++++++--------------------------
 e2fsck/e2fsck.h            |   2 +-
 e2fsck/quota.c             |   1 -
 lib/quota/Makefile.in      |  59 ++++----------
 lib/quota/common.h         |   1 +
 lib/quota/mkquota.c        |  71 ++++++++++++++---
 lib/quota/mkquota.h        |  64 ----------------
 lib/quota/quota.pc.in      |  11 ---
 lib/quota/quotaio.c        |  64 +++++++++++++---
 lib/quota/quotaio.h        |  64 +++++++++++++++-
 misc/Makefile.in           |  14 ++--
 misc/ext4.5.in             |   7 --
 misc/mke2fs.c              |   9 +--
 misc/tune2fs.c             |   6 +-
 tests/f_quota/debugfs-cmds |   7 ++
 tests/f_quota/expect.0     |  21 +++++
 tests/f_quota/expect.1     |  13 ++++
 tests/f_quota/expect.2     |   7 ++
 tests/f_quota/image.gz     | Bin 0 -> 1046 bytes
 tests/f_quota/name         |   1 +
 tests/f_quota/script       |   4 +
 tests/m_quota/expect.1     |   4 -
 29 files changed, 650 insertions(+), 339 deletions(-)
 create mode 100644 debugfs/quota.c
 delete mode 100644 lib/quota/mkquota.h
 delete mode 100644 lib/quota/quota.pc.in
 create mode 100644 tests/f_quota/debugfs-cmds
 create mode 100644 tests/f_quota/expect.0
 create mode 100644 tests/f_quota/expect.1
 create mode 100644 tests/f_quota/expect.2
 create mode 100644 tests/f_quota/image.gz
 create mode 100644 tests/f_quota/name
 create mode 100644 tests/f_quota/script
Signature · 1 line
1.9.0