All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] Introduce btrfs-modify prog to make corruption easier
@ 2017-04-17  3:26 Qu Wenruo
  2017-04-17  3:26 ` [PATCH 1/9] btrfs-progs: Introduce new btrfs_map_block function which returns more unified result Qu Wenruo
                   ` (9 more replies)
  0 siblings, 10 replies; 16+ messages in thread
From: Qu Wenruo @ 2017-04-17  3:26 UTC (permalink / raw)
  To: linux-btrfs, dsterba

Introduce a new command, btrfs-modify, which is not part of 'btrfs', but
an independent command, bring minimal impact to existing btrfs commands.

Btrfs-modify is designed to provides better documentation than current
btrfs-corrupt-block with better subcommand division to reduce confusing
or conflicting options.

Btrfs-modify paired with offline-scrub patchset (not merged yet) could
provide a full suite for test case writers to do corruption and recovery
verification.

Qu Wenruo (9):
  btrfs-progs: Introduce new btrfs_map_block function which returns more
    unified result.
  btrfs-progs: Allow __btrfs_map_block_v2 to remove unrelated stripes
  btrfs-progs: Export commands processing code to commands.c from
    btrfs.c
  btrfs-progs: help: Unbind short help description from btrfs
  btrfs-progs: utils: Introduce new function arg_strtou32
  btrfs-progs: Introduce btrfs-modify tool to modify btrfs internal
    structures
  btrfs-progs: modify: Add support to corrupt specified mirror
  btrfs-progs: modify: Introduce option to specify range by root,ino and
    offset
  btrfs-progs: modify: Introduce option to specify the pattern to fill
    mirror

 .gitignore                          |   1 +
 Documentation/Makefile.in           |   1 +
 Documentation/btrfs-modify.asciidoc |  64 +++++
 Makefile                            |  14 +-
 btrfs.c                             | 116 +--------
 commands.c                          | 127 ++++++++++
 commands.h                          |   4 +
 help.c                              |  14 +-
 help.h                              |   3 +-
 modify/main.c                       | 110 +++++++++
 modify/mirror.c                     | 472 ++++++++++++++++++++++++++++++++++++
 modify/modify_commands.h            |  25 ++
 utils-lib.c                         |  15 ++
 utils.h                             |   1 +
 volumes.c                           | 283 +++++++++++++++++++++
 volumes.h                           |  78 ++++++
 16 files changed, 1213 insertions(+), 115 deletions(-)
 create mode 100644 Documentation/btrfs-modify.asciidoc
 create mode 100644 commands.c
 create mode 100644 modify/main.c
 create mode 100644 modify/mirror.c
 create mode 100644 modify/modify_commands.h

-- 
2.12.2




^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-05-06 15:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-17  3:26 [PATCH 0/9] Introduce btrfs-modify prog to make corruption easier Qu Wenruo
2017-04-17  3:26 ` [PATCH 1/9] btrfs-progs: Introduce new btrfs_map_block function which returns more unified result Qu Wenruo
2017-04-17  3:26 ` [PATCH 2/9] btrfs-progs: Allow __btrfs_map_block_v2 to remove unrelated stripes Qu Wenruo
2017-04-17  3:26 ` [PATCH 3/9] btrfs-progs: Export commands processing code to commands.c from btrfs.c Qu Wenruo
2017-04-17  3:26 ` [PATCH 4/9] btrfs-progs: help: Unbind short help description from btrfs Qu Wenruo
2017-04-17  3:26 ` [PATCH 5/9] btrfs-progs: utils: Introduce new function arg_strtou32 Qu Wenruo
2017-04-17  3:26 ` [PATCH 6/9] btrfs-progs: Introduce btrfs-modify tool to modify btrfs internal structures Qu Wenruo
2017-04-17  3:26 ` [PATCH 7/9] btrfs-progs: modify: Add support to corrupt specified mirror Qu Wenruo
2017-04-17  3:26 ` [PATCH 8/9] btrfs-progs: modify: Introduce option to specify range by root,ino and offset Qu Wenruo
2017-04-17  3:26 ` [PATCH 9/9] btrfs-progs: modify: Introduce option to specify the pattern to fill mirror Qu Wenruo
2017-04-18  7:05   ` Lakshmipathi.G
     [not found]     ` <33ef367f-85a5-8418-d57e-b38b22214487@cn.fujitsu.com>
     [not found]       ` <CAKuJGC9tcGh49XGv+tU729Y0BNnnMEwDk7axGQv6RAV0ZbFCGQ@mail.gmail.com>
     [not found]         ` <9e8c3a66-f43a-bce8-36b1-5f358c6cab4a@cn.fujitsu.com>
2017-04-23  7:42           ` Lakshmipathi.G
2017-05-04 16:53             ` David Sterba
     [not found]               ` <a1fc8d12-e9c3-45ec-a70c-a6732750d4ca@cn.fujitsu.com>
2017-05-06 15:31                 ` Lakshmipathi.G
2017-04-19 18:15 ` [PATCH 0/9] Introduce btrfs-modify prog to make corruption easier David Sterba
2017-04-20  0:40   ` Qu Wenruo

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.