Skip to contentSkip to conversation

master - cache: no status for pending deleted cache

PATCH Zdenek Kabelac 1 participant 1 message Nov 11, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=42a3305ec7aac3b1b75098c5d1ea7fa9b92a0477
Commit:        42a3305ec7aac3b1b75098c5d1ea7fa9b92a0477
Parent:        7fa7ac528d1dbbcaf424b422a462af437bcf56fb
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Nov 11 11:00:35 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Nov 11 13:32:41 2014 +0100

cache: no status for pending deleted cache

---
 lib/activate/activate.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
lib/activate/activate.c +3 -0
index 2843e61..ddbebf7 100644
@@ -1015,6 +1015,9 @@ int lv_cache_status(const struct logical_volume *cache_lv,
 		cache_lv = cache_seg->lv;
 	}
 
+	if (lv_is_pending_delete(cache_lv))
+		return 0;
+
 	if (!lv_info(cache_lv->vg->cmd, cache_lv, 0, NULL, 0, 0))
 		return 0;