]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2image: copy mmp block when create metadata only image
authorArtem Blagodarenko <artem.blagodarenko@gmail.com>
Tue, 21 Aug 2018 19:58:41 +0000 (22:58 +0300)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Aug 2018 04:37:54 +0000 (00:37 -0400)
commit8aa8f063de66fb8ebd0373bb52af1499f364f701
treedc30b26fea4db217cea7468c243c09034bd545bd
parent3baafde6a8ae76767990649b05abdc9036409eaf
e2image: copy mmp block when create metadata only image

e2image in modes without data blocks copy (-r, -Q) doesn't copy
mmp block that leads to fsck error:

Superblock has invalid MMP magic.  Fix? no

This patch adds coping this block if mmp is enabled.

Change-Id: I66035ee394a0ff53b9959e82b3e47050f3bf1593
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e2image.c
tests/m_image_mmp/expect.1 [new file with mode: 0644]
tests/m_image_mmp/name [new file with mode: 0644]
tests/m_image_mmp/script [new file with mode: 0644]