Skip to content

RFC ext4, jbd2: journal cycled record transactions between each mounts

Zhang Yi linux-ext4 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest2 patches 0 repliesNew

Changes in v2 from the cover letter

- Fix the format type warning.
- Add more check of journal_cycle_record mount options in remount.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2jbd2: cycled record log on clean journal logging areafs/jbd2/journal.c fs/jbd2/recovery.c include/linux/jbd2.h+40 -90 replies
2/2ext4: add journal cycled recording supportfs/ext4/ext4.h fs/ext4/super.c+20 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 0/2] ext4, jbd2: journal cycled record transactions between each mounts

From: Zhang Yi <[email protected]>

v1->v2:
- Fix the format type warning.
- Add more check of journal_cycle_record mount options in remount.

Hello, This patch set introduce a new mount option names journal_cycle_record, it save journal head for a clean unmounted file system, let ext4 continue/cycled record new journal transactions after previous mount or recovered transactions for unclean file system. It could give us more info when analysing a corrupted file system image and locate kernel consistency bugs more conveniently.

This is just the kernel part and have already passed throuth xfstests in auto mode (it depends on one prefix patch[1]). I will continue the e2fsprogs' part if nobody strong dislike that. Any comments are welcome.

[1] https://lore.kernel.org/linux-ext4/20230130111138.76tp6pij3yhh4brh@quack3/T/#m96a1cffd567bdd844233b3115a6635391ed0b45b

Thanks,
Yi.

Zhang Yi (2):
jbd2: cycled record log on clean journal logging area
ext4: add journal cycled recording support

 fs/ext4/ext4.h       |  2 ++
 fs/ext4/super.c      | 18 ++++++++++++++++++
 fs/jbd2/journal.c    | 18 ++++++++++++++++--
 fs/jbd2/recovery.c   | 22 +++++++++++++++++-----
 include/linux/jbd2.h |  9 +++++++--
 5 files changed, 60 insertions(+), 9 deletions(-)
Signature · 1 line
2.31.1