Skip to contentSkip to conversation

multipath-tools: use internal drd.h file

PATCH In review Xose Vazquez Perez 4 participants 6 messages Oct 8, 2016 – Oct 16, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: use internal drd.h file

Cc Bart Van Assche <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/debug.c | 2 +-
 multipathd/main.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
libmultipath/debug.c +1 -1
index 295136c..fbe171a 100644
@@ -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
index cdfafe8..0998085 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 35 lines · Xose Vazquez Perez
Cc Bart Van Assche <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/debug.c | 2 +-
 multipathd/main.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
libmultipath/debug.c +1 -1
index 295136c..fbe171a 100644
@@ -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
index cdfafe8..0998085 100644
@@ -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:

#2 lore raw
In reply to 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]>
---
 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
index 295136c..fbe171a 100644
@@ -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
index cdfafe8..0998085 100644
@@ -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
#3 lore raw

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]>
---
 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
index 295136c..fbe171a 100644
@@ -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
index cdfafe8..0998085 100644
@@ -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
#4 lore raw
In reply to Xose Vazquez Perez
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]>
---
 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
index 295136c..fbe171a 100644
@@ -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
index cdfafe8..0998085 100644
@@ -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)
#5 lore raw

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]>
---
 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 -0
Quoted 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
index cdfafe8..0998085 100644
@@ -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 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
--
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