Skip to contentSkip to conversation

master - debug: passing non-raid seg would be internal error

PATCH Zdenek Kabelac 1 participant 1 message Jun 16, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=fbb3bffb221f3c0275bafef4f2cc7ea299214ef4
Commit:        fbb3bffb221f3c0275bafef4f2cc7ea299214ef4
Parent:        9e96f96a410c7ff977fa8593dff185fbe90615fe
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Jun 16 16:24:38 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Jun 16 17:04:02 2017 +0200

debug: passing non-raid seg would be internal error

---
 lib/metadata/lv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/metadata/lv.c +1 -1
index 555df1a..c87bb6b 100644
@@ -1096,7 +1096,7 @@ int lv_raid_healthy(const struct logical_volume *lv)
 	}
 
 	if (!seg_is_raid(raid_seg)) {
-		log_error("%s on %s is not a RAID segment",
+		log_error(INTERNAL_ERROR "%s on %s is not a RAID segment.",
 			  raid_seg->lv->name, lv->name);
 		return 0;
 	}