From 44b070415b47c9c4d4fb5bcccaf2629b5762fa86 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 4 Jul 2023 13:31:56 +0200 Subject: [PATCH] commands: support query for lv_is_cow --- tools/lv_props.h | 1 + tools/toollib.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tools/lv_props.h b/tools/lv_props.h index 60c8c73f2..ed6fafdae 100644 --- a/tools/lv_props.h +++ b/tools/lv_props.h @@ -47,6 +47,7 @@ lvp(is_thin_origin_LVP, "lv_is_thin_origin", NULL) lvp(is_thin_snapshot_LVP, "lv_is_thin_snapshot", NULL) lvp(is_cache_origin_LVP, "lv_is_cache_origin", NULL) +lvp(is_cow_LVP, "lv_is_cow", NULL) lvp(is_merging_cow_LVP, "lv_is_merging_cow", NULL) lvp(is_cow_covering_origin_LVP, "lv_is_cow_covering_origin", NULL) lvp(is_visible_LVP, "lv_is_visible", NULL) diff --git a/tools/toollib.c b/tools/toollib.c index 696f541c4..d1dc0d842 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -2746,6 +2746,8 @@ static int _lv_is_prop(struct cmd_context *cmd, struct logical_volume *lv, int l return lv_is_cache_origin(lv); case is_merging_cow_LVP: return lv_is_merging_cow(lv); + case is_cow_LVP: + return lv_is_cow(lv); case is_cow_covering_origin_LVP: return lv_is_cow_covering_origin(lv); case is_visible_LVP: