Description of problem: While coding other pieces of lvm2 code it appears to me, we should improve handling of old-snapshot code inside lvm2 (mainly merge) Code for snapshot seems to be spread into wrong layers and adds a lot of extra unneeded internal complexity. Also we should try to eliminate multiphase execution of dm-tree - looks like preload of all children first before resuming them might resolve this problem. This could be seen as low-prio task. Version-Release number of selected component (if applicable): 2.02.105 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
As of the nature of old dm snapshot target - we can't reduce complexity - with recent patch we even needed to go the opposite way to ensure snapshots are scanned after origin LV. Snapshot are required to be activated first - followed by the origin. https://listman.redhat.com/archives/lvm-devel/2023-February/024556.html