mbox series

[v2,0/3] e2fsprogs: journal cycled record transactions between each mount

Message ID 20230317091716.4150992-1-yi.zhang@huaweicloud.com
Headers show
Series e2fsprogs: journal cycled record transactions between each mount | expand

Message

Zhang Yi March 17, 2023, 9:17 a.m. UTC
From: Zhang Yi <yi.zhang@huawei.com>

v1->v2:
 - Remove the document about journal_cycle_record mount option.

Hello!

This is the e2fsprogs part of the ext4 journal cycled record
transactions option feature(corresponding kernel part is at [1]). It
add a new parameter to record the journal head of a clean filesystem,
mke2fs initialize it to the start of journal area, and e2fsck check and
fix it if it's bad, and also update it after recovering journal. Passed
functional tests.

Thanks,
Yi.

[1] https://lore.kernel.org/linux-ext4/20230317090926.4149399-1-yi.zhang@huaweicloud.com/

Zhang Yi (3):
  lib/ext2fs: record and show journal head block
  debugfs/e2fsck: update the journal head block after recovery
  debugfs/e2fsck: check bad s_head block number

 debugfs/journal.c       | 10 +++++++++-
 e2fsck/journal.c        | 15 ++++++++++++++-
 e2fsck/recovery.c       | 21 +++++++++++++++++----
 lib/e2p/ljs.c           |  3 +++
 lib/ext2fs/kernel-jbd.h |  6 ++++--
 lib/ext2fs/mkjournal.c  |  1 +
 6 files changed, 48 insertions(+), 8 deletions(-)