diff options
author | ShyamsundarR <srangana@redhat.com> | 2018-11-29 14:08:06 -0500 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-12-05 21:47:04 +0000 |
commit | 20ef211cfa5b5fcc437484a879fdc5d4c66bbaf5 (patch) | |
tree | f2e6af0f2ba7768e32cbf712149c0ffd5314f811 /xlators/experimental | |
parent | ad446dabb88439ba83e2092021b09894351e8e71 (diff) |
libglusterfs: Move devel headers under glusterfs directory
libglusterfs devel package headers are referenced in code using
include semantics for a program, this while it works can be better
especially when dealing with out of tree xlator builds or in
general out of tree devel package usage.
Towards this, the following changes are done,
- moved all devel headers under a glusterfs directory
- Included these headers using system header notation <> in all
code outside of libglusterfs
- Included these headers using own program notation "" within
libglusterfs
This change although big, is just moving around the headers and
making it correct when including these headers from other sources.
This helps us correctly include libglusterfs includes without
namespace conflicts.
Change-Id: Id2a98854e671a7ee5d73be44da5ba1a74252423b
Updates: bz#1193929
Signed-off-by: ShyamsundarR <srangana@redhat.com>
Diffstat (limited to 'xlators/experimental')
10 files changed, 39 insertions, 39 deletions
diff --git a/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c b/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c index 556385724a4..14a4c0e04fe 100644 --- a/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c +++ b/xlators/experimental/dht2/dht2-client/src/dht2-client-main.c @@ -14,10 +14,10 @@ * The entire functionality including comments is TODO. */ -#include "glusterfs.h" -#include "xlator.h" -#include "logging.h" -#include "statedump.h" +#include <glusterfs/glusterfs.h> +#include <glusterfs/xlator.h> +#include <glusterfs/logging.h> +#include <glusterfs/statedump.h> int32_t dht2_client_init(xlator_t *this) diff --git a/xlators/experimental/dht2/dht2-common/src/dht2-common-map.c b/xlators/experimental/dht2/dht2-common/src/dht2-common-map.c index d959483b8a4..84ff27241d3 100644 --- a/xlators/experimental/dht2/dht2-common/src/dht2-common-map.c +++ b/xlators/experimental/dht2/dht2-common/src/dht2-common-map.c @@ -14,6 +14,6 @@ * The entire functionality including comments is TODO. */ -#include "glusterfs.h" -#include "logging.h" -#include "statedump.h" +#include <glusterfs/glusterfs.h> +#include <glusterfs/logging.h> +#include <glusterfs/statedump.h> diff --git a/xlators/experimental/dht2/dht2-server/src/dht2-server-main.c b/xlators/experimental/dht2/dht2-server/src/dht2-server-main.c index f051a44e99f..6f67e07ffdf 100644 --- a/xlators/experimental/dht2/dht2-server/src/dht2-server-main.c +++ b/xlators/experimental/dht2/dht2-server/src/dht2-server-main.c @@ -14,10 +14,10 @@ * The entire functionality including comments is TODO. */ -#include "glusterfs.h" -#include "xlator.h" -#include "logging.h" -#include "statedump.h" +#include <glusterfs/glusterfs.h> +#include <glusterfs/xlator.h> +#include <glusterfs/logging.h> +#include <glusterfs/statedump.h> int32_t dht2_server_init(xlator_t *this) diff --git a/xlators/experimental/fdl/src/recon.c b/xlators/experimental/fdl/src/recon.c index ec1bf37dad9..51c57d4ac22 100644 --- a/xlators/experimental/fdl/src/recon.c +++ b/xlators/experimental/fdl/src/recon.c @@ -4,9 +4,9 @@ #include <unistd.h> #include <sys/mman.h> -#include "glusterfs.h" -#include "fd.h" -#include "syncop.h" +#include <glusterfs/glusterfs.h> +#include <glusterfs/fd.h> +#include <glusterfs/syncop.h> #include "glfs-internal.h" #define GFAPI_SUCCESS 0 diff --git a/xlators/experimental/jbr-client/src/jbr-messages.h b/xlators/experimental/jbr-client/src/jbr-messages.h index ecbf569ec13..608e024f920 100644 --- a/xlators/experimental/jbr-client/src/jbr-messages.h +++ b/xlators/experimental/jbr-client/src/jbr-messages.h @@ -11,7 +11,7 @@ #ifndef _JBR_MESSAGES_H_ #define _JBR_MESSAGES_H_ -#include "glfs-message-id.h" +#include <glusterfs/glfs-message-id.h> /* To add new message IDs, append new identifiers at the end of the list. * diff --git a/xlators/experimental/jbr-client/src/jbrc.c b/xlators/experimental/jbr-client/src/jbrc.c index 28801ecc99f..5c58a1efa99 100644 --- a/xlators/experimental/jbr-client/src/jbrc.c +++ b/xlators/experimental/jbr-client/src/jbrc.c @@ -12,13 +12,13 @@ #include "config.h" #endif -#include "call-stub.h" -#include "defaults.h" -#include "timer.h" -#include "xlator.h" +#include <glusterfs/call-stub.h> +#include <glusterfs/defaults.h> +#include <glusterfs/timer.h> +#include <glusterfs/xlator.h> #include "jbr-messages.h" #include "jbrc.h" -#include "statedump.h" +#include <glusterfs/statedump.h> #define SCAR_LIMIT 20 #define HILITE(x) ("[1;33m" x "[0m") diff --git a/xlators/experimental/jbr-server/src/jbr.c b/xlators/experimental/jbr-server/src/jbr.c index 31df6ad5a1e..f5fb55fee18 100644 --- a/xlators/experimental/jbr-server/src/jbr.c +++ b/xlators/experimental/jbr-server/src/jbr.c @@ -14,16 +14,16 @@ #endif #include <fnmatch.h> -#include "call-stub.h" -#include "defaults.h" -#include "xlator.h" +#include <glusterfs/call-stub.h> +#include <glusterfs/defaults.h> +#include <glusterfs/xlator.h> #include "glfs.h" #include "glfs-internal.h" -#include "run.h" -#include "common-utils.h" -#include "syncop.h" -#include "syscall.h" -#include "compat-errno.h" +#include <glusterfs/run.h> +#include <glusterfs/common-utils.h> +#include <glusterfs/syncop.h> +#include <glusterfs/syscall.h> +#include <glusterfs/compat-errno.h> #include "fdl.h" #include "jbr-internal.h" diff --git a/xlators/experimental/posix2/common/src/posix2-common.c b/xlators/experimental/posix2/common/src/posix2-common.c index 14b51d538b2..06702528bec 100644 --- a/xlators/experimental/posix2/common/src/posix2-common.c +++ b/xlators/experimental/posix2/common/src/posix2-common.c @@ -13,6 +13,6 @@ * The entire functionality including comments is TODO. */ -#include "glusterfs.h" -#include "logging.h" -#include "statedump.h" +#include <glusterfs/glusterfs.h> +#include <glusterfs/logging.h> +#include <glusterfs/statedump.h> diff --git a/xlators/experimental/posix2/ds/src/posix2-ds-main.c b/xlators/experimental/posix2/ds/src/posix2-ds-main.c index 4e399a98ed4..0d3a026611e 100644 --- a/xlators/experimental/posix2/ds/src/posix2-ds-main.c +++ b/xlators/experimental/posix2/ds/src/posix2-ds-main.c @@ -14,10 +14,10 @@ * The entire functionality including comments is TODO. */ -#include "glusterfs.h" -#include "xlator.h" -#include "logging.h" -#include "statedump.h" +#include <glusterfs/glusterfs.h> +#include <glusterfs/xlator.h> +#include <glusterfs/logging.h> +#include <glusterfs/statedump.h> int32_t posix2_ds_init(xlator_t *this) diff --git a/xlators/experimental/posix2/mds/src/posix2-mds-main.c b/xlators/experimental/posix2/mds/src/posix2-mds-main.c index 58da05f2091..f2ec570917d 100644 --- a/xlators/experimental/posix2/mds/src/posix2-mds-main.c +++ b/xlators/experimental/posix2/mds/src/posix2-mds-main.c @@ -14,10 +14,10 @@ * The entire functionality including comments is TODO. */ -#include "glusterfs.h" -#include "xlator.h" -#include "logging.h" -#include "statedump.h" +#include <glusterfs/glusterfs.h> +#include <glusterfs/xlator.h> +#include <glusterfs/logging.h> +#include <glusterfs/statedump.h> int32_t posix2_mds_init(xlator_t *this) |