When a writecache sublv or an integrity metadata sublv
are partial (missing a dev), set the partial flag on
the upper level LV also, as is done for other sublvs.
return_0;
if (lvseg->metadata_lv && !fn(lvseg->metadata_lv, data))
return_0;
+ if (lvseg->writecache && !fn(lvseg->writecache, data))
+ return_0;
+ if (lvseg->integrity_meta_dev && !fn(lvseg->integrity_meta_dev, data))
+ return_0;
for (s = 0; s < lvseg->area_count; ++s) {
if (seg_type(lvseg, s) == AREA_LV && !fn(seg_lv(lvseg,s), data))
return_0;
aux disable_dev "$dev2"
+lvs -a -o+lv_health_status $vg |tee out
+grep $lv1 out | grep partial
+grep $lv2 out | grep partial
+check lv_attr_bit health $vg/$lv1 "p"
+
not lvconvert --splitcache $vg/$lv1
lvconvert --splitcache --force --yes $vg/$lv1
aux disable_dev "$dev3"
+lvs -a -o+lv_health_status $vg |tee out
+grep $lv1 out | grep partial
+grep $lv2 out | grep partial
+check lv_attr_bit health $vg/$lv1 "p"
+
not lvconvert --splitcache $vg/$lv1
lvconvert --splitcache --force --yes $vg/$lv1