summaryrefslogtreecommitdiffstats
path: root/tools/lvchange.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r--tools/lvchange.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index 55799c66..2ed8c16c 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -94,7 +94,8 @@ static int lvchange_monitoring(struct cmd_context *cmd,
{
struct lvinfo info;
- if (!lv_info(cmd, lv, 0, &info, 0, 0) || !info.exists) {
+ if (!lv_info(cmd, lv, lv_is_thin_pool(lv) ? 1 : 0,
+ &info, 0, 0) || !info.exists) {
log_error("Logical volume, %s, is not active", lv->name);
return 0;
}