1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-11 13:49:28 +03:00

cache: use LV_PENDING_DELETE

This commit is contained in:
Zdenek Kabelac
2014-11-10 10:56:43 +01:00
parent f6932bfcf9
commit f5e265a07f
9 changed files with 103 additions and 58 deletions

View File

@ -188,6 +188,7 @@ char *build_dm_uuid(struct dm_pool *mem, const struct logical_volume *lv,
*/
/* Suffixes used here MUST match lib/activate/dev_manager.c */
layer = lv_is_cache_origin(lv) ? "real" :
(lv_is_cache(lv) && lv_is_pending_delete(lv)) ? "real" :
lv_is_cache_pool_data(lv) ? "cdata" :
lv_is_cache_pool_metadata(lv) ? "cmeta" :
// FIXME: dm-tree needs fixes for mirrors/raids