]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/journal.c
journal: use consts instead of 1024 and add helper for journal with 1k blocksize
authorAzat Khuzhin <a3at.mail@gmail.com>
Mon, 28 Jul 2014 07:43:22 +0000 (11:43 +0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Jul 2014 00:21:47 +0000 (20:21 -0400)
commit7f33024ac293e8ff98a73b21452adc464929da31
tree3f3ff979fdc98139dbc505b168fcd25107fda89a
parentd230dc4a3ead2a5507f1edbf2ac603715c292019
journal: use consts instead of 1024 and add helper for journal with 1k blocksize

Use EXT2_MIN_BLOCK_SIZE, JFS_MIN_JOURNAL_BLOCKS, SUPERBLOCK_SIZE, and
SUPERBLOCK_OFFSET instead of hardcoded 1024 when it is okay, and also
add a helper ext2fs_journal_sb_start() that will return start of
journal sb with special case for fs with 1k block size.

Signed-off-by: Azat Khuzhin <a3at.mail@gmail.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/journal.c
lib/ext2fs/ext2fs.h
lib/ext2fs/mkjournal.c
misc/tune2fs.c