multipath-tools ./Makefile libcheckers/Makefil ...
Subsystems (2)
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL4_FC5
Changes by: [email protected] 2007-07-24 20:35:24
Modified files:
. : Makefile libcheckers : Makefile checkers.h selector.c libmultipath : discovery.c structs.h util.c util.h multipath : main.c
Added files:
cciss_id : Makefile cciss_id.c cciss_ioctl.h
libcheckers : cciss_tur.c
Log message:
Fix for bz #242097. Added cciss support.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/Makefile.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.6.2.1&r2=1.6.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/cciss_id/Makefile.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=NONE&r2=1.1.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/cciss_id/cciss_id.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=NONE&r2=1.1.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/cciss_id/cciss_ioctl.h.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=NONE&r2=1.1.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libcheckers/cciss_tur.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=NONE&r2=1.1.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libcheckers/Makefile.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.4&r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libcheckers/checkers.h.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.3&r2=1.3.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libcheckers/selector.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.4&r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/discovery.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.28.2.3&r2=1.28.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/structs.h.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.17.2.4&r2=1.17.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/util.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.4&r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/util.h.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.3&r2=1.3.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipath/main.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.41.2.4&r2=1.41.2.5
Makefile +2 -2
@@ -23,13 +23,13 @@ BUILDDIRS = libmultipath libcheckers path_priority/pp_emc \ path_priority/pp_alua path_priority/pp_netapp \ path_priority/pp_hds_modular path_priority/pp_tpc \ - multipath multipathd kpartx + multipath multipathd kpartx cciss_id ALLDIRS = $(shell find . -type d -maxdepth 1 -mindepth 1) VERSION = $(shell basename ${PWD} | cut -d'-' -f3) INSTALLDIRS = multipath multipathd kpartx path_priority/pp_emc \ path_priority/pp_alua path_priority/pp_netapp \ - path_priority/pp_hds_modular path_priority/pp_tpc + path_priority/pp_hds_modular path_priority/pp_tpc cciss_id all: recurse
libcheckers/Makefile +1 -1
@@ -6,7 +6,7 @@ include ../Makefile.inc -OBJS = readsector0.o tur.o selector.o directio.o emc_clariion.o hp_sw.o +OBJS = readsector0.o tur.o selector.o directio.o emc_clariion.o hp_sw.o cciss_tur.o all: $(BUILD)
libcheckers/checkers.h +3 -1
@@ -11,7 +11,8 @@READSECTOR0 ,DIRECTIO ,EMC_CLARIION , - HP_SW +HP_SW , + CCISS_TUR };#define MSG (a) if (msg != NULL) \
@@ -26,5 +27,6 @@int readsector0 (int fd,char * msg,void ** ctxt);int tur (int fd,char * msg,void ** ctxt);int hp_sw (int fd,char * msg,void ** ctxt); +int cciss_tur (int fd,char * msg,void ** ctxt);#endif /* _CHECKERS_H */
libcheckers/Attic/selector.c +8 -0
@@ -19,6 +19,8 @@return EMC_CLARIION ;if (0 ==strncmp (str,"hp_sw" ,5 ))return HP_SW ; +if (0 ==strncmp (str,"cciss_tur" ,9 )) +return CCISS_TUR ;return -1 ; }
@@ -43,6 +45,9 @@case HP_SW : checker = &hp_sw;break ; +case CCISS_TUR : + checker = &cciss_tur; +break ;default : checker =NULL ;break ;
@@ -71,6 +76,9 @@case HP_SW : s ="hp_sw" ;break ; +case CCISS_TUR : + s ="cciss_tur" ; +break ;default : s ="undefined" ;break ;
libmultipath/discovery.c +46 -1
89 lines not on this page · raw message
libmultipath/structs.h +1 -0
@@ -40,6 +40,7 @@SYSFS_BUS_SCSI ,SYSFS_BUS_IDE ,SYSFS_BUS_CCW , +SYSFS_BUS_CCISS }; enum pathstates {
libmultipath/util.c +11 -0
@@ -43,6 +43,17 @@strcpy (str2, p); } +void cciss_basename (char * str1,char * str2) +{ +char *p = str1 + (strlen (str1) ); + +while (*--p !='!' && p != str1) +continue ; +if (p != str1) + p++; +strcpy (str2, p); +} +int filepresent (char * run) {struct stat buf;
libmultipath/util.h +1 -1
@@ -5,7 +5,7 @@void basename (char * src,char * dst);int filepresent (char * run);int get_word (char * sentence,char ** word); - +void cciss_basename (char * ,char * ); #define safe_sprintf(var, format, args...) \ snprintf(var, sizeof(var), format, ##args) >= sizeof(var)
multipath/main.c +3 -3
@@ -1,7 +1,7 @@/* * Soft: multipath device mapper target autoconfig * -* Version: $Id: main.c,v 1.41.2.4 2006/12/01 23:45:18 bmarzins Exp $ +* Version: $Id: main.c,v 1.41.2.5 2007/07/24 20:35:24 bmarzins Exp $ * * Author: Christophe Varoqui *
@@ -1064,8 +1064,8 @@/* maximum info */ di_flag =DI_ALL ; -if (path_discovery (pathvec, conf, di_flag)) - goto out; +path_discovery (pathvec, conf, di_flag); +// goto out; if (conf->verbosity >2 ) {fprintf (stdout,"#\n# all paths :\n#\n" );