Hi Wang,
I agree we use transid to find most proper device, but this check is not right. Here @found_transid is the most biggest generation, so a right candidate device's transid should be @found_tranid -1 (power off for example)or same as @found_transid. Anyway, i think the right way should be to check two same id device, and we only replace existed one if new found one's transid > previous one. Please correct me if i miss something here.^_^
Thanks for the review comments ! I am writing the fix. Anand -- 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