On Mon, Jan 19, 2015 at 02:45:12PM +0800, Qu Wenruo wrote: > Allow open_ctree to try its best to open tree root on damaged file system. > > With this patch, open_ctree will follow the below priority to read tree > root, providing better chance to open damaged btrfs fs. > 1) Using root bytenr in SB to read tree root > Normal routine if not specified to use backup roots or specified root > tree bytenr. > > 2) Using backup root if specified or 1) fails > Backup will be automatically used without user specification if > normal routine fails > > 3) Try to search possible tree root in all its metadata chunks > The last chance, searching through all the metadata space. > May takes a long time but still worth a try since above methods all > fails. I don't see this patch merged and there are no folowups. IIRC I had objections against the automatic behaviour but cannot find the discussion. Can we merge at least some bit of that patch? It does more than one thing so it would be better to split it. -- 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
