diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-09-30 13:28:20 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-09-30 13:34:34 +0200 |
commit | 5c0264d68954e5677f21459bb18d50704b2b9d77 (patch) | |
tree | f8bec5ebe5eb50a205ecaec117dd9aeb997d621a | |
parent | a98b77c16455ee97f5bd4b89536a3ae4efd8e009 (diff) | |
download | lvm2-5c0264d68954e5677f21459bb18d50704b2b9d77.tar.gz |
vdo: restore monitoring of vdo pool
Switch to -vpool layered name needs to monitor proper device.
-rw-r--r-- | lib/activate/activate.c | 2 | ||||
-rw-r--r-- | tools/lvchange.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 258881633..6f5fa1ade 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -1604,6 +1604,8 @@ static char *_build_target_uuid(struct cmd_context *cmd, const struct logical_vo if (lv_is_thin_pool(lv)) layer = "tpool"; /* Monitor "tpool" for the "thin pool". */ + else if (lv_is_vdo_pool(lv)) + layer = "vpool"; /* Monitor "vpool" for the "VDO pool". */ else if (lv_is_origin(lv) || lv_is_external_origin(lv)) layer = "real"; /* Monitor "real" for "snapshot-origin". */ else diff --git a/tools/lvchange.c b/tools/lvchange.c index 65cea6c96..5f0fcab81 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -145,7 +145,7 @@ static int _lvchange_monitoring(struct cmd_context *cmd, { struct lvinfo info; - if (!lv_info(cmd, lv, lv_is_thin_pool(lv) ? 1 : 0, + if (!lv_info(cmd, lv, (lv_is_thin_pool(lv) || lv_is_vdo_pool(lv)) ? 1 : 0, &info, 0, 0) || !info.exists) { log_error("Logical volume %s is not active.", display_lvname(lv)); return 0; |