From: Artem Blagodarenko <artem.blagodarenko@gmail.com>
To: linux-ext4@vger.kernel.org
Cc: adilger.kernel@dilger.ca
Subject: [PATCH v7 0/4] e2image -b option to pass superblock number
Date: Tue, 29 Jan 2019 20:51:30 +0300 [thread overview]
Message-ID: <20190129175134.26652-1-c17828@cray.com> (raw)
There was a discussion about possibility of using
superblock backup for creating images with e2image.
https://www.spinics.net/lists/linux-ext4/msg30583.html
Now our customer faced with situation then it would be
useful to have image file from partition with broken
superblock.
Here is set of patches that adds this functionality.
This is 7th version of the patch set.
Changes from previous version:
* Only two cases in try_open_fs() now: with and without passed
superblock size.
* Some minor code style and comments issues are fixed.
Artem Blagodarenko (4):
ext2fs: opening filesystem code refactoring
e2image: add -b and -B options to use supperblock backup
tests: add test for e2image -b option
ext2fs: automaticlly open backup superblocks
e2fsck/e2fsck.h | 2 -
e2fsck/message.c | 3 +-
e2fsck/unix.c | 42 ++++---------
e2fsck/util.c | 73 -----------------------
lib/ext2fs/openfs.c | 39 ++++++++++--
lib/support/Makefile.in | 8 ++-
lib/support/sb_backup.c | 140 ++++++++++++++++++++++++++++++++++++++++++++
lib/support/sb_backup.h | 20 +++++++
misc/dumpe2fs.c | 17 +-----
misc/e2image.8.in | 33 +++++++++++
misc/e2image.c | 50 ++++++++++++++--
tests/i_zero_super/expect.1 | 22 +++++++
tests/i_zero_super/image.gz | Bin 0 -> 13262 bytes
tests/i_zero_super/script | 11 ++++
14 files changed, 328 insertions(+), 132 deletions(-)
create mode 100644 lib/support/sb_backup.c
create mode 100644 lib/support/sb_backup.h
create mode 100644 tests/i_zero_super/expect.1
create mode 100644 tests/i_zero_super/image.gz
create mode 100644 tests/i_zero_super/script
--
2.14.3
next reply other threads:[~2019-01-29 17:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 17:51 Artem Blagodarenko [this message]
2019-01-29 17:51 ` [PATCH v7 1/4] ext2fs: opening filesystem code refactoring Artem Blagodarenko
2019-01-30 3:01 ` Andreas Dilger
2019-03-06 16:48 ` Theodore Y. Ts'o
2019-03-06 17:06 ` Theodore Y. Ts'o
2019-01-29 17:51 ` [PATCH v7 2/4] e2image: add -b and -B options to use supperblock backup Artem Blagodarenko
2019-01-30 3:06 ` Andreas Dilger
2019-03-06 17:06 ` Theodore Y. Ts'o
2019-01-29 17:51 ` [PATCH v7 3/4] tests: add test for e2image -b option Artem Blagodarenko
2019-01-29 17:51 ` [PATCH v7 4/4] ext2fs: automaticlly open backup superblocks Artem Blagodarenko
2019-01-30 3:10 ` Andreas Dilger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190129175134.26652-1-c17828@cray.com \
--to=artem.blagodarenko@gmail.com \
--cc=adilger.kernel@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.