multipath-tools: replace remaining leading spaces with tabs
PATCH 1/1 multipath-tools: replace remaining leading spaces with tabs
spotted by checkpatch.pl
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
Signed-off-by Xose Vazquez Perez <[email protected]>
--- kpartx/dasd.c | 4 ++-- kpartx/lopart.c | 32 +++++++++++++++----------------- libmultipath/devmapper.c | 2 +- mpathpersist/main.c | 2 +- 4 files changed, 19 insertions(+), 21 deletions(-)
kpartx/dasd.c +2 -2
@@ -233,7 +233,7 @@ read_dasd_pt(int fd, struct slice all, struct slice *sp, int ns) || EBCtoASC[f1.DS1FMTID] == '5' || EBCtoASC[f1.DS1FMTID] == '7' || EBCtoASC[f1.DS1FMTID] == '9') { - blk++; + blk++;continue ; }
@@ -243,7 +243,7 @@ read_dasd_pt(int fd, struct slice all, struct slice *sp, int ns)break ;/* OK, we got valid partition data */ - offset =cchh2blk (&f1.DS1EXT1.llimit, &geo); + offset =cchh2blk (&f1.DS1EXT1.llimit, &geo); size =cchh2blk (&f1.DS1EXT1.ulimit, &geo) - offset + geo.sectors; sp[counter].start =sectors512 (offset, blocksize);
kpartx/lopart.c +15 -17
@@ -211,23 +211,21 @@ find_unused_loop_device (void)fprintf (stderr,"mount: could not find any device /dev/loop#" ); else if (!someloop) { -if (loop_known ==1 ) -fprintf (stderr, -"mount: Could not find any loop device.\n" -" Maybe /dev/loop# has a wrong major number?" ); -else if (loop_known ==-1 ) -fprintf (stderr, -"mount: Could not find any loop device, and, according to %s,\n" -" this kernel does not know about the loop device.\n" -" (If so, then recompile or `modprobe loop'.)" , -PROC_DEVICES ); - -else -fprintf (stderr, -"mount: Could not find any loop device. Maybe this kernel does not know\n" -" about the loop device (then recompile or `modprobe loop'), or\n" -" maybe /dev/loop# has the wrong major number?" ); - +if (loop_known ==1 ) +fprintf (stderr, +"mount: Could not find any loop device.\n" +" Maybe /dev/loop# has a wrong major number?" ); +else if (loop_known ==-1 ) +fprintf (stderr, +"mount: Could not find any loop device, and, according to %s,\n" +" this kernel does not know about the loop device.\n" +" (If so, then recompile or `modprobe loop'.)" , +PROC_DEVICES ); +else +fprintf (stderr, +"mount: Could not find any loop device. Maybe this kernel does not know\n" +" about the loop device (then recompile or `modprobe loop'), or\n" +" maybe /dev/loop# has the wrong major number?" ); } else fprintf(stderr, "mount: could not find any free loop device");return 0 ;
libmultipath/devmapper.c +1 -1
@@ -664,7 +664,7 @@ dm_dev_t (const char * mapname, char * dev_t, int len) goto out;if (snprintf (dev_t, len,"%i:%i" , info.major, info.minor) > len) - goto out; + goto out; r =0 ; out:
mpathpersist/main.c +1 -1
@@ -744,7 +744,7 @@ mpath_print_transport_id(struct prin_fulldescr *fdesc)break ;case MPATH_PROTOCOL_ID_SAS :printf (" SAS " ); -if (0 != fdesc->trnptid.format_code) +if (0 != fdesc->trnptid.format_code)printf (" [Unexpected format code: %d]\n" , fdesc->trnptid.format_code);dumpHex ((const char *)fdesc->trnptid.sas_address,8 ,0 );
Signature · 1 line
2.7.4