Skip to contentSkip to conversation

master - cleanup: use simplier test

PATCH Zdenek Kabelac 1 participant 1 message Jun 20, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=548269a1ddeb8fa2cfc6a9fd95c5fb2c398914a7
Commit:        548269a1ddeb8fa2cfc6a9fd95c5fb2c398914a7
Parent:        32ad8ab5a4a6cd00f15beb947568a7a5b702f545
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Jun 19 21:08:05 2014 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Jun 20 11:14:11 2014 +0200

cleanup: use simplier test

Just like all other tests - use direct LV function test

---
 lib/metadata/lv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
lib/metadata/lv.c +2 -2
index a1211a8..6cbab19 100644
@@ -776,8 +776,8 @@ char *lv_host_dup(struct dm_pool *mem, const struct logical_volume *lv)
 
 static int _lv_is_exclusive(struct logical_volume *lv)
 {
-	/* Some devices require exlusivness */
-	return seg_is_raid(first_seg(lv)) ||
+	/* Some devices require exlusiveness */
+	return lv_is_is_raid(lv) ||
 		lv_is_origin(lv) ||
 		lv_is_thin_type(lv) ||
 		lv_is_cache_type(lv);