master - vdo: restore monitoring of vdo pool
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=5c0264d68954e5677f21459bb18d50704b2b9d77 Commit: 5c0264d68954e5677f21459bb18d50704b2b9d77 Parent: a98b77c16455ee97f5bd4b89536a3ae4efd8e009 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Sep 30 13:28:20 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Sep 30 13:34:34 2019 +0200
vdo: restore monitoring of vdo pool
Switch to -vpool layered name needs to monitor proper device.
--- lib/activate/activate.c | 2 ++ tools/lvchange.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-)
lib/activate/activate.c +2 -0
@@ -1604,6 +1604,8 @@ static char *_build_target_uuid(struct cmd_context *cmd, const struct logical_voif (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
tools/lvchange.c +1 -1
@@ -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 ;