multipath-tools: delete trailing white spaces
PATCH 1/1 multipath-tools: delete trailing white spaces
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
Signed-off-by Xose Vazquez Perez <[email protected]>
--- kpartx/dasd.c | 2 +- kpartx/efi.h | 4 ++-- kpartx/lopart.c | 4 ++-- libmultipath/discovery.c | 2 +- libmultipath/structs.h | 4 ++-- mpathpersist/Makefile | 4 ++-- mpathpersist/main.c | 2 +- multipathd/cli_handlers.c | 4 ++-- multipathd/main.c | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-)
kpartx/dasd.c +1 -1
@@ -112,7 +112,7 @@ read_dasd_pt(int fd, struct slice all, struct slice *sp, int ns)* major/minor into an openable device file, so we have * to create one for ourselves. */ - +sprintf (pathname,"/dev/.kpartx-node-%u-%u" , (unsigned int )major (dev), (unsigned int )minor (dev));if ((fd_dasd =open (pathname,O_RDONLY )) ==-1 ) {
kpartx/efi.h +2 -2
@@ -1,8 +1,8 @@/* efi.[ch] - Manipulates EFI variables as exported in /proc/efi/vars -+ Copyright (C) 2001 Dell Computer Corporation <[email protected]> -+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or
kpartx/lopart.c +2 -2
@@ -76,9 +76,9 @@ is_loop_device (const char *device) loopmajor =0 ;if ((procdev =fopen (PROC_DEVICES ,"r" )) !=NULL ) { - +while (fgets (line,sizeof (line), procdev)) { - +if ((cp =strstr (line," loop\n" )) !=NULL ) { *cp='\0' ; loopmajor=atoi (line);
libmultipath/discovery.c +1 -1
@@ -1714,7 +1714,7 @@ pathinfo (struct path *pp, struct config *conf, int mask)get_prio (pp); } } - +if ((mask &DI_ALL ) ==DI_ALL ) pp->initialized =INIT_OK ;return PATHINFO_OK ;
libmultipath/structs.h +2 -2
@@ -272,7 +272,7 @@ struct multipath {/* checkers shared data */ void * mpcontext; - +/* persistent management data*/ unsigned char * reservation_key;unsigned char prflag;
@@ -328,7 +328,7 @@ struct multipath * find_mp_by_alias (vector mp, char * alias);struct multipath *find_mp_by_wwid (vector mp,char * wwid);struct multipath *find_mp_by_str (vector mp,char * wwid);struct multipath *find_mp_by_minor (vector mp,int minor); - +struct path *find_path_by_devt (vector pathvec,char * devt);struct path *find_path_by_dev (vector pathvec,char * dev);struct path *first_path (struct multipath * mpp);
mpathpersist/Makefile +2 -2
@@ -14,13 +14,13 @@ all: $(EXEC) $(EXEC): $(OBJS) $(CC) -g $(OBJS) -o $(EXEC) $(LDFLAGS) $(CFLAGS) $(GZIP) $(EXEC).8 > $(EXEC).8.gz - + install: $(INSTALL_PROGRAM) -d $(DESTDIR)$(bindir) $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/ $(INSTALL_PROGRAM) -d $(DESTDIR)$(mandir) $(INSTALL_PROGRAM) -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir) - + clean: $(RM) *.o $(EXEC) $(RM) mpathpersist.8.gz
mpathpersist/main.c +1 -1
@@ -423,7 +423,7 @@ int main (int argc, char * argv[])struct prout_param_descriptor *paramp; paramp=malloc (sizeof (struct prout_param_descriptor ) + (sizeof (struct transportid *)*(MPATH_MX_TIDS ))); - +memset (paramp,0 ,sizeof (struct prout_param_descriptor ) + (sizeof (struct transportid *)*(MPATH_MX_TIDS )));for (j =7 ; j >=0 ; --j) {
multipathd/cli_handlers.c +2 -2
@@ -127,7 +127,7 @@ show_maps_topology (char ** r, int * len, struct vectors * vecs)char * reply;unsigned int maxlen =INITIAL_REPLY_LEN ;int again =1 ; - +get_path_layout (vecs->pathvec,0 ); reply =MALLOC (maxlen);
@@ -338,7 +338,7 @@ cli_list_map_topology (void * v, char ** reply, int * len, void * data)struct multipath * mpp;struct vectors * vecs = (struct vectors *)data;char * param =get_keyparam (v,MAP ); - + param =convert_dev (param,0 );get_path_layout (vecs->pathvec,0 ); mpp =find_mp_by_str (vecs->mpvec, param);
multipathd/main.c +1 -1
@@ -1520,7 +1520,7 @@ check_path (struct vectors * vecs, struct path * pp, int ticks) }else if (ret ==PATHINFO_SKIPPED ) {put_multipath_config (conf);return -1 ; - } + }put_multipath_config (conf); }return 0 ;
Signature · 1 line
2.7.4