Skip to contentSkip to conversation

explicitly include posix_types.h

PATCH In review Ritesh Raj Sarraf 2 participants 4 messages Jan 9, 2013 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 explicitly include posix_types.h

From: Guido Günther <[email protected]>

to get the correct type for __kernel_old_dev_t

Closes #558990
---
 kpartx/lopart.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
kpartx/lopart.c +1 -12
index 79d8328..570c8ad 100644
@@ -26,18 +26,7 @@
 #include <sys/stat.h>
 #include <sys/mman.h>
 #include <sysmacros.h>
-
-#if defined(__hppa__) || defined(__powerpc64__) || defined (__alpha__) \
- || defined (__x86_64__)
-typedef unsigned long __kernel_old_dev_t;
-#elif defined(__powerpc__) || defined(__ia64__) || (defined(__sparc__) && defined (__arch64__))
-typedef unsigned int __kernel_old_dev_t;
-#else
-typedef unsigned short __kernel_old_dev_t;
-#endif
-
-#define dev_t __kernel_old_dev_t
-
+#include <asm/posix_types.h>
 #include <linux/loop.h>
 
 #include "lopart.h"
Signature · 6 lines
1.7.10.4

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
#1 lore raw

PATCH 2/3 Minor spelling error fixes for Debian's lintian cleanliness

fix missed-out hyphen

---
 kpartx/kpartx.8            |    9 ++++++---
 multipath/main.c           |    2 +-
 multipath/multipath.conf.5 |    8 ++++----
 multipathd/multipathd.8    |    4 ++--
 4 files changed, 13 insertions(+), 10 deletions(-)
kpartx/kpartx.8 +6 -3
index 8a37d4f..0b54cfb 100644
@@ -20,6 +20,9 @@ Add partition mappings
 .B \-r
 Readonly partition mappings
 .TP
+.B \-r
+Read-only partition mappings
+.TP
 .B \-d
 Delete partition mappings
 .TP
@@ -27,7 +30,7 @@ Delete partition mappings
 Update partition mappings
 .TP
 .B \-l
-List partition mappings that would be added -a
+List partition mappings that would be added \-a
 .TP
 .B \-p
 set device name-partition number delimiter
@@ -46,7 +49,7 @@ Sync mode. Don't return until the partitions are created
 .SH EXAMPLE
 To mount all the partitions in a raw disk image:
 .IP
-kpartx -av disk.img
+kpartx \-av disk.img
 .PP
 This will output lines such as:
 .IP
@@ -62,7 +65,7 @@ fsck /dev/mapper/loop3p1
 .PP
 When you're done, you need to remove the devices:
 .IP
-kpartx -d disk.img
+kpartx \-d disk.img
 .SH "SEE ALSO"
 .BR multipath (8)
 .BR multipathd (8)
multipath/main.c +1 -1
index 396c4b9..0083ef4 100644
@@ -504,7 +504,7 @@ main (int argc, char *argv[])
 			usage(argv[0]);
 			exit(0);
 		case ':':
-			fprintf(stderr, "Missing option arguement\n");
+			fprintf(stderr, "Missing option argument\n");
 			usage(argv[0]);
 			exit(1);
 		case '?':
multipath/multipath.conf.5 +4 -4
index 92fb0c1..eb96c61 100644
@@ -301,7 +301,7 @@ to assign a persistent and unique alias to the multipath, in the form of mpath<n
 If set to 
 .I no
 use the WWID as the alias. In either case this be will
-be overriden by any specific aliases in the \fImultipaths\fR section.
+be overridden by any specific aliases in the \fImultipaths\fR section.
 Default is
 .I no
 .TP
@@ -314,7 +314,7 @@ deleted. Default is
 .TP
 .B max_fds
 Specify the maximum number of file descriptors that can be opened by multipath
-and multipathd.  This is equivalent to ulimit -n. A value of \fImax\fR will set
+and multipathd.  This is equivalent to ulimit \-n. A value of \fImax\fR will set
 this to the system limit from /proc/sys/fs/nr_open. If this is not set, the
 maximum number of open fds is taken from the calling process. It is usually
 1024. To be safe, this should be set to the maximum number of paths plus 32,
@@ -322,7 +322,7 @@ if that number is greated than 1024.
 .TP
 .B checker_timeout
 Specify the timeout to user for path checkers that issue scsi commands with an
-explict timeout, in seconds; default taken from
+explicit timeout, in seconds; default taken from
 .I /sys/block/sd<x>/device/timeout
 .TP
 .B fast_io_fail_tmo
@@ -405,7 +405,7 @@ The
 section is used to revert the actions of the
 .I blacklist
 section, ie to include specific device in the
-multipath topology. This allows to selectively include devices which
+multipath topology. This allows one to selectively include devices which
 would normally be excluded via the
 .I blacklist
 section.
multipathd/multipathd.8 +2 -2
index cbc40a4..ccc5f54 100644
@@ -53,10 +53,10 @@ Show the status of all multipath devices that the multipathd is monitoring.
 Show some statistics of all multipath devices that the multipathd is monitoring.
 .TP
 .B list|show maps|multipaths topology
-Show the current multipath topology. Same as "multipath -ll".
+Show the current multipath topology. Same as "multipath \-ll".
 .TP
 .B list|show topology
-Show the current multipath topology. Same as "multipath -ll".
+Show the current multipath topology. Same as "multipath \-ll".
 .TP
 .B list|show map|multipath $map topology
 Show topology of a single multipath device specified by $map, e.g. 36005076303ffc56200000000000010aa.
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 3/3 Drop useless link to curses library

In reply to Ritesh Raj Sarraf

Description: Do not link against ncurses unnecessarily
Author: Sven Joachim <[email protected]>
Bug-Debian: http://bugs.debian.org/646148
Last-Update: <2011-11-05>

---
 multipathd/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
multipathd/Makefile +1 -1
index 9553251..b490c1d 100644
@@ -6,7 +6,7 @@ include ../Makefile.inc
 # basic flags setting
 #
 CFLAGS += -I$(multipathdir) -I$(mpathpersistdir)
-LDFLAGS += -lpthread -ldevmapper -lreadline -lncurses -ludev -ldl \
+LDFLAGS += -lpthread -ldevmapper -lreadline -ludev -ldl \
 	   -L$(multipathdir) -lmultipath -L$(mpathpersistdir) -lmpathpersist
 
 #
Signature · 1 line
1.7.10.4
#2 lore raw

Re: [PATCH 2/3] Minor spelling error fixes for Debian's lintian cleanliness

In reply to Ritesh Raj Sarraf
Quoted 15 lines · Ritesh Raj Sarraf

fix missed-out hyphen

---
  kpartx/kpartx.8            |    9 ++++++---
  multipath/main.c           |    2 +-
  multipath/multipath.conf.5 |    8 ++++----
  multipathd/multipathd.8    |    4 ++--
  4 files changed, 13 insertions(+), 10 deletions(-)
kpartx/kpartx.8 +0 -0
index 8a37d4f..0b54cfb 100644

kpartx/kpartx.8 Add partition mappings · line 28

Quoted 9 lines
kpartx/kpartx.8 +3 -0
@@ -20,6 +20,9 @@ Add partition mappings
  .B \-r
  Readonly partition mappings
  .TP
+.B \-r
+Read-only partition mappings
+.TP
  .B \-d
  Delete partition mappings
  .TP

Huh? That seems to be a merge error.
Please repost.

Quoted 88 lines
kpartx/kpartx.8 +3 -3
@@ -27,7 +30,7 @@ Delete partition mappings
  Update partition mappings
  .TP
  .B \-l
-List partition mappings that would be added -a
+List partition mappings that would be added \-a
  .TP
  .B \-p
  set device name-partition number delimiter
@@ -46,7 +49,7 @@ Sync mode. Don't return until the partitions are created
  .SH EXAMPLE
  To mount all the partitions in a raw disk image:
  .IP
-kpartx -av disk.img
+kpartx \-av disk.img
  .PP
  This will output lines such as:
  .IP
@@ -62,7 +65,7 @@ fsck /dev/mapper/loop3p1
  .PP
  When you're done, you need to remove the devices:
  .IP
-kpartx -d disk.img
+kpartx \-d disk.img
  .SH "SEE ALSO"
  .BR multipath (8)
  .BR multipathd (8)
multipath/main.c +1 -1
index 396c4b9..0083ef4 100644
@@ -504,7 +504,7 @@ main (int argc, char *argv[])
  			usage(argv[0]);
  			exit(0);
  		case ':':
-			fprintf(stderr, "Missing option arguement\n");
+			fprintf(stderr, "Missing option argument\n");
  			usage(argv[0]);
  			exit(1);
  		case '?':
multipath/multipath.conf.5 +4 -4
index 92fb0c1..eb96c61 100644
@@ -301,7 +301,7 @@ to assign a persistent and unique alias to the multipath, in the form of mpath<n
  If set to
  .I no
  use the WWID as the alias. In either case this be will
-be overriden by any specific aliases in the \fImultipaths\fR section.
+be overridden by any specific aliases in the \fImultipaths\fR section.
  Default is
  .I no
  .TP
@@ -314,7 +314,7 @@ deleted. Default is
  .TP
  .B max_fds
  Specify the maximum number of file descriptors that can be opened by multipath
-and multipathd.  This is equivalent to ulimit -n. A value of \fImax\fR will set
+and multipathd.  This is equivalent to ulimit \-n. A value of \fImax\fR will set
  this to the system limit from /proc/sys/fs/nr_open. If this is not set, the
  maximum number of open fds is taken from the calling process. It is usually
  1024. To be safe, this should be set to the maximum number of paths plus 32,
@@ -322,7 +322,7 @@ if that number is greated than 1024.
  .TP
  .B checker_timeout
  Specify the timeout to user for path checkers that issue scsi commands with an
-explict timeout, in seconds; default taken from
+explicit timeout, in seconds; default taken from
  .I /sys/block/sd<x>/device/timeout
  .TP
  .B fast_io_fail_tmo
@@ -405,7 +405,7 @@ The
  section is used to revert the actions of the
  .I blacklist
  section, ie to include specific device in the
-multipath topology. This allows to selectively include devices which
+multipath topology. This allows one to selectively include devices which
  would normally be excluded via the
  .I blacklist
  section.
multipathd/multipathd.8 +0 -0
index cbc40a4..ccc5f54 100644
@@ -53,10 +53,10 @@ Show the status of all multipath devices that the multipathd is monitoring.
  Show some statistics of all multipath devices that the multipathd is monitoring.
  .TP

multipathd/multipathd.8 Show the status of all multipath devices that the multipathd is monitoring. · line 62

Quoted 10 lines
multipathd/multipathd.8 +2 -2
  .B list|show maps|multipaths topology
-Show the current multipath topology. Same as "multipath -ll".
+Show the current multipath topology. Same as "multipath \-ll".
  .TP
  .B list|show topology
-Show the current multipath topology. Same as "multipath -ll".
+Show the current multipath topology. Same as "multipath \-ll".
  .TP
  .B list|show map|multipath $map topology
  Show topology of a single multipath device specified by $map, e.g. 36005076303ffc56200000000000010aa.

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)