Skip to contentSkip to conversation

master - cleanup: indent and messsages updates

PATCH Zdenek Kabelac 1 participant 1 message Dec 5, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=81ef4eb4f887381d67546884be5a717030fb505a
Commit:        81ef4eb4f887381d67546884be5a717030fb505a
Parent:        69c79ed2f486a9092cdf1586fcf320634e3cd44d
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Dec 1 14:53:35 2016 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Dec 5 17:12:42 2016 +0100

cleanup: indent and messsages updates

---
 lib/activate/activate.c    |    4 ++
 lib/activate/dev_manager.c |   77 +++++++++++++++++++++++++-------------------
 lib/metadata/lv.c          |    1 +
 3 files changed, 49 insertions(+), 33 deletions(-)
lib/activate/activate.c +4 -0
index 3128f36..b4c8a2c 100644
@@ -655,6 +655,10 @@ int target_present(struct cmd_context *cmd, const char *target_name,
 				      &maj, &min, &patchlevel);
 }
 
+/*
+ * When '*info' is NULL, returns 1 only when LV is active.
+ * When '*info' != NULL, returns 1 when info structure is populated.
+ */
 static int _lv_info(struct cmd_context *cmd, const struct logical_volume *lv,
 		    int use_layer, struct lvinfo *info,
 		    const struct lv_segment *seg,
lib/activate/dev_manager.c +44 -33

260 lines not on this page · raw message

lib/metadata/lv.c +1 -0
index 081df71..4a9fed7 100644
@@ -258,6 +258,7 @@ char *lvseg_kernel_discards_dup(struct dm_pool *mem, const struct lv_segment *se
 	ret = lvseg_kernel_discards_dup_with_info_and_seg_status(mem, &status);
 bad:
 	dm_pool_destroy(status.seg_status.mem);
+
 	return ret;
 }