Skip to contentSkip to conversation

dmraid include/dmraid/lib_context.h lib/log/lo ...

PATCH [email protected] 1 participant 1 message Mar 19, 2010 Device mapper

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: dmraid
Changes by: [email protected] 2010-03-19 12:07:48

Modified files:
include/dmraid : lib_context.h
lib/log : log.h
lib/metadata : metadata.c
tools : commands.c

Log message:
Added pthread lib to tools build. Removed superfluous DMRAID_MINI conditionals and sorted option definitions in commands.c

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/include/dmraid/lib_context.h.diff?cvsroot=dm&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/log/log.h.diff?cvsroot=dm&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/metadata/metadata.c.diff?cvsroot=dm&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/tools/commands.c.diff?cvsroot=dm&r1=1.7&r2=1.8

include/dmraid/lib_context.h +0 -11
@@ -133,23 +133,18 @@
 	ACTIVATE = 0x1,
 	DEACTIVATE = 0x2,
 	FORMAT = 0x4,
-#ifndef	DMRAID_MINI
 	BLOCK_DEVICES = 0x8,
 	COLUMN = 0x10,
 	DBG = 0x20,
 	DUMP = 0x40,
 	DMERASE = 0x80,
 	GROUP = 0x100,
-#endif
 	HELP = 0x200,
-#ifndef	DMRAID_MINI
 	LIST_FORMATS = 0x400,
 #  ifdef	DMRAID_NATIVE_LOG
 	NATIVE_LOG = 0x800,
 #  endif
-#endif
 	NOPARTITIONS = 0x1000,
-#ifndef	DMRAID_MINI
 	RAID_DEVICES = 0x2000,
 	RAID_SETS = 0x4000,
 	TEST = 0x8000,
@@ -157,10 +152,8 @@
 	ACTIVE = 0x20000,
 	INACTIVE = 0x40000,
 	SEPARATOR = 0x80000,
-#endif
 	VERSION = 0x100000,
 	IGNORELOCKING = 0x200000,
-#ifndef DMRAID_MINI
 	DEL_SETS = 0x400000,
 	CREATE = 0x800000,
 	REBUILD = 0x1000000,
@@ -169,12 +162,8 @@
 	END_REBUILD = 0x8000000,
 	GET_MEMBERS = 0x10000000,
 	PARTCHAR = 0x20000000,
-
-#endif
 	RMPARTITIONS = 0x40000000,
-#ifndef DMRAID_MINI
 	IGNOREMONITORING = 0x80000000,
-#endif
 };
 
 /* Arguments allowed ? */
lib/log/log.h +0 -17
@@ -26,21 +26,6 @@
 	  int line, const char *format, ...);
 int log_alloc_err(struct lib_context *lc, const char *who);
 
-#  ifdef DMRAID_MINI
-
-#define log_info(lc, x...)
-#define log_info_nnl(lc, x...)
-#define log_notice(lc, x...)
-#define log_notice_nnl(lc, x...)
-#define log_warn(lc, x...)
-#define log_warn_nn(lc, x...)
-#define log_debug(lc, x...)
-#define log_debug_nnl(lc, x...)
-#define log_dbg(lc, x...)
-#define log_dbg_nnl(lc, x...)
-
-#  else
-
 #define _log_info(lc, lf, x...) plog(lc, _PLOG_INFO, lf, __FILE__, __LINE__, x)
 #define log_info(lc, x...) _log_info(lc, 1, x)
 #define log_info_nnl(lc, x...) _log_info(lc, 0, x)
@@ -61,8 +46,6 @@
 #define log_dbg(lc, x...) log_debug(lc, x)
 #define log_dbg_nnl(lc, x...) log_debug_nnl(lc, x)
 
-#  endif
-
 #define	log_level(lc, level, x...) plog(lc, level, 1, __FILE__, __LINE__, x)
 #define	log_level_nnl(lc, level, x...) plog(lc, level, 0, __FILE__, __LINE__, x)
 
lib/metadata/metadata.c +0 -4
@@ -2102,7 +2102,6 @@
 	if (!(M_RAID & p->metadata))
 		return 1;
 
-#ifndef	DMRAID_MINI
 	/* Discover RAID disks and keep RAID metadata (eg, hpt45x) */
 	discover_raid_devices(lc,
 # ifdef	DMRAID_NATIVE_LOG
@@ -2111,9 +2110,6 @@
 # else
 			      (RAID_DEVICES & action) ? argv : NULL);
 # endif
-#else
-	discover_raid_devices(lc, NULL);
-#endif
 
 	if (!OPT_HOT_SPARE_SET(lc) && !OPT_CREATE(lc)
 	    && !count_devices(lc, RAID)) {
tools/commands.c +109 -178

492 lines not on this page · raw message