lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180526224600.46905-1-artem.blagodarenko@gmail.com>
Date:   Sun, 27 May 2018 01:45:56 +0300
From:   Artem Blagodarenko <artem.blagodarenko@...il.com>
To:     linux-ext4@...r.kernel.org
Subject: [PATCH v5 0/4] e2image -b option to pass superblock number

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 5th version of the patch set. Changes since v4:
* Actualized commit messages
* removed "ext2fs" prefixes from ext2fs_first_backup_sb and ext2fs_try_backups
  names, because this fucntions are placed to lib/support now
* parameters checked in case ext2fs_first_backup_sb is executed only with
  fs->super given
* code style changes


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               |  44 +++++---------
 e2fsck/util.c               |  73 -----------------------
 lib/ext2fs/openfs.c         |  36 +++++++++++-
 lib/support/Makefile.in     |   8 ++-
 lib/support/sb_backup.c     | 137 ++++++++++++++++++++++++++++++++++++++++++++
 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(+), 128 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ