dev-lvmguy-raid-takeover-reshape-resize - avoid debug printfs
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9bded3b386833360dff3a5bd9bba4de4297f1914 Commit: 9bded3b386833360dff3a5bd9bba4de4297f1914 Parent: d8f933989c2fbd9fcedf511867f1d7a1c9e58145 Author: Heinz Mauelshagen <[email protected]> AuthorDate: Fri Jan 30 18:16:20 2015 +0100 Committer: Heinz Mauelshagen <[email protected]> CommitterDate: Fri Jan 30 18:16:20 2015 +0100
avoid debug printfs
--- lib/metadata/lv_manip.c | 2 ++ lib/metadata/raid_manip.c | 2 ++ tools/lvconvert.c | 1 + 3 files changed, 5 insertions(+), 0 deletions(-)
lib/metadata/lv_manip.c +2 -0
@@ -31,6 +31,8 @@#include "lvm-signal.h" #include "memlock.h" +#define printf(a ...) + typedef enum { PREFERRED, USE_AREA,
lib/metadata/raid_manip.c +2 -0
@@ -26,6 +26,8 @@#include "dump.h" #endif +#define printf(a ...) +static void _ensure_min_region_size (struct logical_volume *lv) {struct lv_segment *seg =first_seg (lv);
tools/lvconvert.c +1 -0
@@ -1900,6 +1900,7 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *lstruct lv_segment *seg =first_seg (lv);dm_percent_t sync_percent; +#define printf(a ...)printf ("stripes_ARG=%u stripes_long_ARG=%u\n" ,arg_count (lv->vg->cmd, stripes_ARG),arg_count (lv->vg->cmd, stripes_long_ARG));if (!arg_count (cmd, type_ARG)) lp->segtype = seg->segtype;