Skip to contentSkip to conversation

master - lv_status: enable lv_status for thinpool

PATCH Zdenek Kabelac 1 participant 1 message Jan 14, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0869631d7d197fec3ea909c243a5e1f2901bea5c
Commit:        0869631d7d197fec3ea909c243a5e1f2901bea5c
Parent:        0b7ccf835bf90b6cb75cdeb6615163835a988107
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Jan 14 12:51:03 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Jan 14 14:50:08 2015 +0100

lv_status: enable lv_status for thinpool

Support also status for thin pools.

---
 lib/activate/dev_manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/activate/dev_manager.c +1 -1
index c134e1b..f310a67 100644
@@ -128,7 +128,7 @@ static int _get_segment_status_from_target_params(const char *target_name,
 	 * linear/striped, old snapshots and raids have proper
 	 * segment selected for status!
 	 */
-	if (strcmp(target_name, "cache"))
+	if (strcmp(target_name, "cache") && strcmp(target_name, "thin-pool"))
 		return 1;
 
 	if (!(segtype = get_segtype_from_string(seg_status->seg->lv->vg->cmd, target_name)))