Skip to contentSkip to conversation

dev-lvmguy-raid-takeover-reshape-resize - avoid __ function prefixes

PATCH Heinz Mauelshagen 1 participant 1 message Jan 31, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d8f933989c2fbd9fcedf511867f1d7a1c9e58145
Commit:        d8f933989c2fbd9fcedf511867f1d7a1c9e58145
Parent:        86c0cd36df46cba666cc5b191f3d8c0f71f1ef2c
Author:        Heinz Mauelshagen <[email protected]>
AuthorDate:    Fri Jan 30 17:33:59 2015 +0100
Committer:     Heinz Mauelshagen <[email protected]>
CommitterDate: Fri Jan 30 17:33:59 2015 +0100

avoid __ function prefixes

---
 lib/metadata/lv_manip.c   |    2 +
 lib/metadata/raid_manip.c |  220 +++++++++++++++++++++++++--------------------
 2 files changed, 126 insertions(+), 96 deletions(-)
lib/metadata/lv_manip.c +2 -0
index 70a2e8b..c4b9a16 100644
@@ -1016,12 +1016,14 @@ static uint32_t __round_to_stripe_boundary(struct logical_volume *lv, uint32_t e
 	if (!stripes)
 		return extents;
 
+printf("%s %d extents=%u stripes=%u\n", __func__, __LINE__, extents, stripes);
 	/* Round up extents to stripe divisable amount */
 	if ((rest = extents % stripes)) {
 		extents += up ? stripes - rest : -rest;
 		log_print_unless_silent("Rounding up size to full stripe size %s",
 			  		display_size(lv->vg->cmd, extents * lv->vg->extent_size));
 	}
+printf("%s %d extents=%u stripes=%u rest=%u\n", __func__, __LINE__, extents, stripes, rest);
 
 	return extents;
 }
lib/metadata/raid_manip.c +124 -96

795 lines not on this page · raw message