Skip to content

e2fsprogs journal fixes (UUID and 1k block size issue)

Azat Khuzhin linux-ext4 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/24 patches 6 repliesIn review
  2. v3 posting 1/21 of 3 patches 1 replySuperseded
  3. v21 of 3 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches5 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4journal: use consts instead of 1024 and add helper for journal with 1k blocksizee2fsck/journal.c lib/ext2fs/ext2fs.h lib/ext2fs/mkjournal.c +1 more+22 -180 replies
2/4tune2fs: remove_journal_device(): use the correct block to find jsbmisc/tune2fs.c+6 -20 replies
3/4tune2fs: update journal super block when changing UUID for fs.misc/tune2fs.c+56 -186 replies
4/4tune2fs: update journal users while updating fs UUID (with external journal)lib/ext2fs/ext2fs.h lib/ext2fs/kernel-jbd.h misc/tune2fs.c +1 more+93 -80 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchAndreas Dilger
1/4R-b
2/4R-b
3/4R-b
4/4Proposed-by

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

Read the v3 thread

Cover letter [PATCH 0/4 v3] e2fsprogs journal fixes (UUID and 1k block size issue)

Hi all,

Here is patchset with some fixes for journal code in e2fsprogs. I've removed first patch from previous version "lib: add EXT2_ prefix for SUPERBLOCK_{OFFSET,SIZE}", and rebase other patches on top of the maint branch.

I've tested it using "make check" and commands from commits.
I do want to add tests for this cases, but they requires some extra capabilities (CAP_SYS_ADMIN for mount(2)), while right now tests don't have such cases, if somebody have proposal how to do this tests without extra mount(2) I will be happy to hear (for more info about possible test cases see "tune2fs: update journal super block when changing UUID for fs." and "tune2fs:
update journal users while updating fs UUID (with external journal)")

Thanks.
Azat.

Azat Khuzhin (4):
journal: use consts instead of 1024 and add helper for journal with 1k
blocksize
tune2fs: remove_journal_device(): use the correct block to find jsb
tune2fs: update journal super block when changing UUID for fs.
tune2fs: update journal users while updating fs UUID (with external
journal)

 e2fsck/journal.c        |   5 +-
 lib/ext2fs/ext2fs.h     |   3 +
 lib/ext2fs/kernel-jbd.h |   6 +-
 lib/ext2fs/mkjournal.c  |  28 ++++----
 misc/tune2fs.c          | 166 +++++++++++++++++++++++++++++++++++++++++-------
 misc/uuidd.c            |   3 +-
 6 files changed, 171 insertions(+), 40 deletions(-)
Signature · 1 line
2.0.1