On Wed, Sep 18, 2013 at 04:27:32PM +0800, Wang Shilong wrote: > Until now if one of device's first superblock is corrupt,btrfs will > fail to mount. Luckily, btrfs have at least two superblocks for > every disk. > > This little program will scan devices and find good superblocks > (max generation, checksum matched). And use this superblock to > recover bad superblocks.The process is: > > Step1: scan btrfs devices > Step2: find good supers > Step3: open ctree > Step4: writ all supers Looks great! I'll pull that into integration even with the BUG_ON in the 4/4 patch and will replace it later. david -- 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