[PATCH v2 0/4] e2image -b option to pass superblock number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 the second version of the patch set. Changes since v1:
* code style fixes
* moving common code to ext2fs_open2
* added  "-B blocksize" option
* fixes in test script

Artem Blagodarenko (4):
  ext2fs: opening filesystem code refactoring
  e2image: add -b option to use supperblock backup
  tests: add test for e2image -b option
  man: add -b option to e2image

 e2fsck/unix.c               |  28 +++-------------------------
 lib/ext2fs/openfs.c         |  36 +++++++++++++++++++++++++++++++++++-
 misc/dumpe2fs.c             |  17 +++--------------
 misc/e2image.8.in           |  32 ++++++++++++++++++++++++++++++++
 misc/e2image.c              |  44 ++++++++++++++++++++++++++++++++++++++------
 tests/i_zero_super/expect   |  22 ++++++++++++++++++++++
 tests/i_zero_super/image.gz | Bin 0 -> 13262 bytes
 tests/i_zero_super/script   |  33 +++++++++++++++++++++++++++++++++
 8 files changed, 166 insertions(+), 46 deletions(-)
 create mode 100644 tests/i_zero_super/expect
 create mode 100644 tests/i_zero_super/image.gz
 create mode 100644 tests/i_zero_super/script

-- 
2.13.6 (Apple Git-96)




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux