Debian packaging fixes for multipath-tools
cover Debian packaging fixes for multipath-tools
Re-sending patches.
Guido Günther (1):
explicitly include posix_types.h
Ritesh Raj Sarraf (2):
Minor spelling error fixes for Debian's lintian cleanliness Drop useless link to curses library
kpartx/kpartx.8 | 8 ++++---- kpartx/lopart.c | 13 +------------ multipath/main.c | 2 +- multipath/multipath.conf.5 | 8 ++++---- multipathd/Makefile | 2 +- multipathd/multipathd.8 | 4 ++-- 6 files changed, 13 insertions(+), 24 deletions(-)
Signature · 6 lines
1.7.10.4 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
PATCH 1/3 explicitly include posix_types.h
From: Guido Günther <[email protected]>
to get the correct type for __kernel_old_dev_t
--- kpartx/lopart.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
kpartx/lopart.c +1 -12
@@ -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
Re: [PATCH 1/3] explicitly include posix_types.h
Quoted 6 lines · Ritesh Raj Sarraf
From: Guido Günther <[email protected]>
to get the correct type for
__kernel_old_dev_tCloses #558990
Merged.
Quoted 19 lines
Signed-off-by Ritesh Raj Sarraf <[email protected]>--- kpartx/lopart.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)kpartx/lopart.c +0
-6@@ -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 ;
kpartx/lopart.c line 32
Quoted 10 lines
kpartx/lopart.c +1
-6-#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"
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
PATCH 2/3 Minor spelling error fixes for Debian's lintian cleanliness
In reply to Ritesh Raj Sarraffix missed-out hyphen
--- kpartx/kpartx.8 | 8 ++++---- multipath/main.c | 2 +- multipath/multipath.conf.5 | 8 ++++---- multipathd/multipathd.8 | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-)
kpartx/kpartx.8 +4 -4
@@ -18,7 +18,7 @@ creation and deletion. Add partition mappings .TP .B \-r -Readonly partition mappings +Read-only partition mappings .TP .B \-d Delete partition mappings
@@ -27,7 +27,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 +46,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 +62,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
@@ -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
@@ -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
@@ -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
Re: [PATCH 2/3] Minor spelling error fixes for Debian's lintian cleanliness
Quoted 2 lines · Ritesh Raj Sarraf
fix missed-out hyphen
Merged.
Quoted 118 lines
Signed-off-by Ritesh Raj Sarraf <[email protected]>--- kpartx/kpartx.8 | 8 ++++---- multipath/main.c | 2 +- multipath/multipath.conf.5 | 8 ++++---- multipathd/multipathd.8 | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-)kpartx/kpartx.8 +4
-4@@ -18,7 +18,7 @@ creation and deletion. Add partition mappings .TP .B \-r -Readonly partition mappings +Read-only partition mappings .TP .B \-d Delete partition mappings@@ -27,7 +27,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 +46,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 +62,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@@ -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@@ -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@@ -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.
PATCH 3/3 Drop useless link to curses library
In reply to Ritesh Raj SarrafDescription: 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
@@ -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
Re: [PATCH 3/3] Drop useless link to curses library
Quoted 5 lines · 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>
Merged.
Quoted 18 lines
Signed-off-by Ritesh Raj Sarraf <[email protected]>--- multipathd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)multipathd/Makefile +1
-1@@ -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 #