Skip to contentSkip to conversation

mke2fs -E offset=N filessystem size calculation

PATCH New Marcus Huewe 1 participant 1 message May 12, 2016

lore
Share & tools
lore
#0 lore raw

cover mke2fs -E offset=N filessystem size calculation

Hi,

it seems that commit 87d9b2fb broke the filesystem size calculation, if mke2fs is called with the offset option ("-E offset=N") and an explicitly specified filesystem size.
This series fixes it and documents the expected behavior (see adjusted testcase).

Marcus

Marcus Huewe (2):
tests: test "mke2fs -E offset=N" filesystem size calculation
mke2fs: fix filesystem size calculation, if an offset is specified

 misc/mke2fs.c                |  3 ++-
 tests/t_mke2fs_offset/script | 28 +++++++++++++++++++++-------
 2 files changed, 23 insertions(+), 8 deletions(-)
Signature · 1 line
2.6.3