From: Martin Wilck <mwi...@arcor.de>

This patch series contains all changes I made to the btrfs tools
in the course of analyzing and repairing the corruption I described
in my other mail to linux-btrfs titled "A story of btrfs corruption
and recovery".

The bottom line of this patch set is: 1) have the tools continue with
error messages instead of aborting in certain error cases; and 
2) look for meta data outside the current trees. Both is useful if
the tree is internally corrupted in the way I described. I have also
added support for extracting inode meta data (times, permissions) 
in "btrfs restore"; this was also useful for my recovery case.

Please review and apply what you find useful.

Martin Wilck (18):
  btrfs-progs: btrfs-debug-tree: add option -f for "block only"
  btrfs-progs: btrfs-debug-tree: add option -B (backup root)
  btrfs-progs: btrfs-debug-tree: fix usage message
  btrfs-progs: btrfs-debug-tree: handle corruption more gracefully
  btrfs-progs: ctree.h: fix btrfs_inode_[amc]time
  btrfs restore: set uid/gid/mode/times
  btrfs restore: better output readability
  btrfs restore: track number of bytes restored
  btrfs restore: more graceful error handling in copy_file
  btrfs restore: hide "offset is X" messages
  btrfs restore: print progress marks for big files
  btrfs restore: check progress of file restoration
  btrfs restore: improve user-asking logic for files with many extents
  btrfs restore: report mismatch in file size
  btrfs-progs: NEW: btrfs-raw
  btrfs-progs: NEW: brtfs-search-metadata
  btrfs-progs: ctree.c: make bin_search non-static
  btrfs-progs: documentation for btrfs-raw and btrfs-search-metadata

 Documentation/Makefile                  |    2 +
 Documentation/btrfs-debug-tree.txt      |   10 ++
 Documentation/btrfs-raw.txt             |   54 ++++++++
 Documentation/btrfs-search-metadata.txt |   57 ++++++++
 Makefile                                |    4 +-
 btrfs-debug-tree.c                      |   78 +++++++++--
 btrfs-raw.c                             |  143 ++++++++++++++++++++
 btrfs-search-metadata.c                 |  224 +++++++++++++++++++++++++++++++
 cmds-restore.c                          |  205 +++++++++++++++++++++++-----
 ctree.c                                 |    4 +-
 ctree.h                                 |   15 ++-
 print-tree.c                            |   22 +++-
 12 files changed, 752 insertions(+), 66 deletions(-)
 create mode 100644 Documentation/btrfs-raw.txt
 create mode 100644 Documentation/btrfs-search-metadata.txt
 create mode 100644 btrfs-raw.c
 create mode 100644 btrfs-search-metadata.c

-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to