mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-02 13:47:42 +03:00
a985d5c63d
When using cached LV with cachevols (so not with cachepool), the loaded table could have been using more then one mapping line for sub devices - resulting into data corruption in some cases when i.e. taking snapshot of such cached LV with and instead of single line - 2 lines were generated into DM table as the code skipped protection again repeated addition. vg-fast_cvol-cdata: 0 16384 linear 253:2 16384 vg-fast_cvol-cdata: 16384 16384 linear 253:2 16384 New code is also refactoring to use _add_new_cvol_subdev_to_dtree (similar _add_cvol_subdev.. ) and also the addition of subdev has been moved after check for already processed node. Also the cachevol sub devices are now added with the insertion of cachevol with cached LV.