The bug as seen in the last patch below,
indicates that we need a mechanisum to tell when to use
the backup super_block. To do this it needs a frame-work,
and the patch #1 and #2 below provides the same without
change in the logic. The last patch uses the framework to
fix the bug.
v1->v2:
Accepts Eric and Zach review.
Seprates fix into 3 patches for easy logical understanding
Anand Jain (3):
btrfs-progs: Introduce flag BTRFS_SCAN_REGISTER to replace run_ioctl
btrfs-progs: Introduce flag BTRFS_SCAN_BACKUP_SB for
btrfs_read_dev_super
btrfs-progs: use BTRFS_SCAN_BACKUP_SB flag in btrfs_scan_one_device
btrfsctl.c | 2 +-
cmds-device.c | 5 +++--
cmds-filesystem.c | 2 +-
cmds-replace.c | 3 ++-
disk-io.c | 16 +++++++++++-----
disk-io.h | 3 ++-
find-root.c | 9 ++++++---
utils.c | 26 +++++++++++++++-----------
utils.h | 8 +++++---
volumes.c | 6 ++++--
volumes.h | 2 +-
11 files changed, 51 insertions(+), 31 deletions(-)
--
1.8.1.191.g414c78c
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html