diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-10-07 14:58:26 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-10-14 15:16:05 +0200 |
commit | a454a1b4ea478ce117808c8b2dd480ff4d5eb2d4 (patch) | |
tree | c74b1cbc57f50a82bfc44913d556d7c0742a5b83 /lib/misc | |
parent | 8d8047883ea56e633007f3bcca6e87e6cb14cef4 (diff) | |
download | lvm2-a454a1b4ea478ce117808c8b2dd480ff4d5eb2d4.tar.gz |
cachevol: put _cvol as protected suffix.
This revert "drop cvol dm uuid suffix for cachevol LVs"
commit 5191057d9df3e5b92db3f80c412b99aea1074358.
Start using -cvol for DM UUID.
Diffstat (limited to 'lib/misc')
-rw-r--r-- | lib/misc/lvm-string.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/misc/lvm-string.c b/lib/misc/lvm-string.c index bb6621485..4034b405d 100644 --- a/lib/misc/lvm-string.c +++ b/lib/misc/lvm-string.c @@ -157,6 +157,7 @@ static const char *_lvname_has_reserved_component_string(const char *lvname) "_cdata", "_cmeta", "_corig", + "_cvol", "_wcorig", "_mimage", "_mlog", @@ -253,6 +254,7 @@ char *build_dm_uuid(struct dm_pool *mem, const struct logical_volume *lv, (lv_is_cache(lv) && lv_is_pending_delete(lv)) ? "real" : lv_is_cache_pool_data(lv) ? "cdata" : lv_is_cache_pool_metadata(lv) ? "cmeta" : + lv_is_cache_vol(lv) ? "cvol" : // FIXME: dm-tree needs fixes for mirrors/raids //lv_is_mirror_image(lv) ? "mimage" : //lv_is_mirror_log(lv) ? "mlog" : |