Skip to contentSkip to conversation

master - segtype: check for activation2

PATCH Zdenek Kabelac 1 participant 1 message May 6, 2016 MD RAID

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=db606591c0b8aa173661377be066be7bd78c5351
Commit:        db606591c0b8aa173661377be066be7bd78c5351
Parent:        144169b9b704a8c9693ee52bcc812c4f07d2ef8f
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri May 6 13:57:36 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri May 6 16:48:16 2016 +0200

segtype: check for activation2

Previous patch 8857b227645e97b7cb52ae8d007e87e07db58b4e missed to check for activation for raid target.

---
 lib/raid/raid.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
lib/raid/raid.c +3 -0
index 67c355a..28fd45b 100644
@@ -319,6 +319,9 @@ static int _raid_target_present(struct cmd_context *cmd,
 	uint32_t maj, min, patchlevel;
 	unsigned i;
 
+	if (!activation())
+		return 0;
+
 	if (!_raid_checked) {
 		_raid_checked = 1;