1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

cachevol: drop LV_CACHE_VOL on detach automatically

Move dropping of cachevol flag into detach function.
TODO: this flag should be internal to lvm2.
This commit is contained in:
Zdenek Kabelac 2019-10-14 10:45:10 +02:00
parent 8a8e6ebba2
commit 77deadd3af

View File

@ -254,6 +254,7 @@ int detach_pool_lv(struct lv_segment *seg)
return_0; return_0;
seg->lv->status &= ~CACHE; seg->lv->status &= ~CACHE;
lv_set_visible(seg->pool_lv); lv_set_visible(seg->pool_lv);
seg->pool_lv->status &= ~LV_CACHE_VOL;
seg->pool_lv = NULL; seg->pool_lv = NULL;
return 1; return 1;
} }