multipath-tools: use internal drd.h file
PATCH 1/1 multipath-tools: use internal drd.h file
--- libmultipath/debug.c | 2 +- multipathd/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
libmultipath/debug.c +1 -1
@@ -8,7 +8,7 @@#include "log_pthread.h" #include <sys/types.h> #include <time.h> -#include <../third-party/valgrind/drd.h> +#include "../third-party/valgrind/drd.h" #include "vector.h" #include "config.h"
multipathd/main.c +1 -1
@@ -23,7 +23,6 @@#endif #include <semaphore.h> #include <time.h> -#include <valgrind/drd.h> /* * libmultipath
@@ -85,6 +84,7 @@ int uxsock_timeout;#include "lock.h" #include "waiter.h" #include "wwids.h" +#include "../third-party/valgrind/drd.h" #define FILE_NAME_SIZE 256#define CMDSIZE 160
Signature · 1 line
2.10.1
Quoted 35 lines · Xose Vazquez Perez
Cc Bart Van Assche <[email protected]>Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>--- libmultipath/debug.c | 2 +- multipathd/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)libmultipath/debug.c +1
-1@@ -8,7 +8,7 @@#include "log_pthread.h" #include <sys/types.h> #include <time.h> -#include <../third-party/valgrind/drd.h> +#include "../third-party/valgrind/drd.h" #include "vector.h" #include "config.h" multipathd/main.c +0
-1@@ -23,7 +23,6 @@#endif #include <semaphore.h> #include <time.h> -#include <valgrind/drd.h> /* * libmultipath
multipathd/main.c int uxsock_timeout; · line 90
Quoted 7 lines
multipathd/main.c +1
-0@@ -85,6 +84,7 @@ int uxsock_timeout;#include "lock.h" #include "waiter.h" #include "wwids.h" +#include "../third-party/valgrind/drd.h" #define FILE_NAME_SIZE 256#define CMDSIZE 160
Hello Xose,
The patch description is slightly misleading. I don't think anyone has a /usr/third-party directory on her or his system so #include <../third-party/valgrind/drd.h> will select the internal drd.h header file. However, that first change improves consistency:
Quoted 8 lines · Xose Vazquez Perez
Cc Bart Van Assche <[email protected]>Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>--- libmultipath/debug.c | 2 +- multipathd/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
This patch is missing.
Thank you.
Quoted 34 lines
libmultipath/debug.c +1
-1@@ -8,7 +8,7 @@#include "log_pthread.h" #include <sys/types.h> #include <time.h> -#include <../third-party/valgrind/drd.h> +#include "../third-party/valgrind/drd.h" #include "vector.h" #include "config.h" multipathd/main.c +1
-1@@ -23,7 +23,6 @@#endif #include <semaphore.h> #include <time.h> -#include <valgrind/drd.h> /* * libmultipath @@ -85,6 +84,7 @@ int uxsock_timeout;#include "lock.h" #include "waiter.h" #include "wwids.h" +#include "../third-party/valgrind/drd.h" #define FILE_NAME_SIZE 256#define CMDSIZE 160
Merged.
Thanks.
On Sun, Oct 16, 2016 at 12:26 PM, Xose Vazquez Perez <[email protected]
Quoted 53 lines
wrote:
Quoted 8 lines · Xose Vazquez Perez
Cc Bart Van Assche <[email protected]>Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>--- libmultipath/debug.c | 2 +- multipathd/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)This patch is missing.
Thank you.Quoted 34 lines
libmultipath/debug.c +1
-1@@ -8,7 +8,7 @@#include "log_pthread.h" #include <sys/types.h> #include <time.h> -#include <../third-party/valgrind/drd.h> +#include "../third-party/valgrind/drd.h" #include "vector.h" #include "config.h" multipathd/main.c +1
-1@@ -23,7 +23,6 @@#endif #include <semaphore.h> #include <time.h> -#include <valgrind/drd.h> /* * libmultipath @@ -85,6 +84,7 @@ int uxsock_timeout;#include "lock.h" #include "waiter.h" #include "wwids.h" +#include "../third-party/valgrind/drd.h" #define FILE_NAME_SIZE 256#define CMDSIZE 160
Quoted 46 lines · Xose Vazquez Perez
Quoted 8 lines · Xose Vazquez Perez
Cc Bart Van Assche <[email protected]>Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>--- libmultipath/debug.c | 2 +- multipathd/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)This patch is missing.
Thank you.Quoted 31 lines
libmultipath/debug.c +1
-1@@ -8,7 +8,7 @@#include "log_pthread.h" #include <sys/types.h> #include <time.h> -#include <../third-party/valgrind/drd.h> +#include "../third-party/valgrind/drd.h" #include "vector.h" #include "config.h" multipathd/main.c +1
-1@@ -23,7 +23,6 @@#endif #include <semaphore.h> #include <time.h> -#include <valgrind/drd.h> /* * libmultipath @@ -85,6 +84,7 @@ int uxsock_timeout;#include "lock.h" #include "waiter.h" #include "wwids.h" +#include "../third-party/valgrind/drd.h"
Quoted 4 lines
multipathd/main.c int uxsock_timeout; · line 90
Quoted 3 lines
multipathd/main.c +0
-0#define FILE_NAME_SIZE 256#define CMDSIZE 160
Please don't.
We're trying to keep dependencies to each package as small as possible. And requiring valgrind by default is not going to help here. Please make this a compile-time option.
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)
That's why we included a copy of the required valgrind header. Does this solution eleviate your complain ?
Quoted 73 lines · Hannes Reinecke
Quoted 47 lines · Xose Vazquez Perez
On 10/08/2016 10:22 PM, Xose Vazquez Perez wrote:
Cc Bart Van Assche <[email protected]>Quoted 8 lines
Cc Christophe Varoqui <[email protected]>Cc device-mapper development <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>--- libmultipath/debug.c | 2 +- multipathd/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)This patch is missing.
Thank you.libmultipath/debug.c +0
-0Quoted 30 lines
index 295136c..fbe171a 100644
libmultipath/debug.c +1
-1@@ -8,7 +8,7 @@#include "log_pthread.h" #include <sys/types.h> #include <time.h> -#include <../third-party/valgrind/drd.h> +#include "../third-party/valgrind/drd.h" #include "vector.h" #include "config.h" multipathd/main.c +1
-1@@ -23,7 +23,6 @@#endif #include <semaphore.h> #include <time.h> -#include <valgrind/drd.h> /* * libmultipath @@ -85,6 +84,7 @@ int uxsock_timeout;#include "lock.h" #include "waiter.h" #include "wwids.h" +#include "../third-party/valgrind/drd.h" Quoted 5 lines
multipathd/main.c int uxsock_timeout; · line 90
Quoted 4 lines
multipathd/main.c +0
-0#define FILE_NAME_SIZE 256#define CMDSIZE 160Please don't.
We're trying to keep dependencies to each package as small as possible. And requiring valgrind by default is not going to help here. Please make this a compile-time option.
Cheers,
Hannes
--
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)--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel