diff --git a/core/src/lib/CMakeLists.txt b/core/src/lib/CMakeLists.txt index e77a1a29657..3e9df5dc7fc 100644 --- a/core/src/lib/CMakeLists.txt +++ b/core/src/lib/CMakeLists.txt @@ -51,7 +51,7 @@ set (BAREOS_SRCS address_conf.cc alist.cc attr.cc attribs.cc base64.cc crypto_none.cc crypto_nss.cc crypto_openssl.cc crypto_wrap.cc daemon.cc devlock.cc dlist.cc edit.cc fnmatch.cc guid_to_name.cc hmac.cc htable.cc jcr.cc json.cc lockmgr.cc md5.cc mem_pool.cc message.cc mntent_cache.cc - output_formatter.cc ordered_cbuf.cc passphrase.cc path_list.cc plugins.cc + output_formatter.cc passphrase.cc path_list.cc plugins.cc bpoll.cc priv.cc queue.cc rblist.cc runscript.cc rwlock.cc scan.cc scsi_crypto.cc scsi_lli.cc sellist.cc serial.cc sha1.cc signal.cc smartall.cc tls.cc diff --git a/core/src/stored/backends/CMakeLists.txt b/core/src/stored/backends/CMakeLists.txt index 13bf8bb0c9c..3b0ddf57662 100644 --- a/core/src/stored/backends/CMakeLists.txt +++ b/core/src/stored/backends/CMakeLists.txt @@ -41,7 +41,7 @@ target_link_libraries(bareossd-gfapi ${GFAPI_LIBRARIES}) endif() if(${HAVE_DROPLET}) -add_library(bareossd-chunked SHARED chunked_device.cc) +add_library(bareossd-chunked SHARED ordered_cbuf.cc chunked_device.cc) target_link_libraries(bareossd-chunked ${DROPLET_LIBRARIES}) INSTALL(TARGETS bareossd-chunked DESTINATION ${backenddir}) diff --git a/core/src/stored/backends/chunked_device.h b/core/src/stored/backends/chunked_device.h index 4382134694e..606db697b60 100644 --- a/core/src/stored/backends/chunked_device.h +++ b/core/src/stored/backends/chunked_device.h @@ -87,7 +87,7 @@ struct chunk_descriptor { bool opened; /* An open call was done */ }; -#include "lib/ordered_cbuf.h" +#include "ordered_cbuf.h" class chunked_device: public Device { private: diff --git a/core/src/lib/ordered_cbuf.cc b/core/src/stored/backends/ordered_cbuf.cc similarity index 99% rename from core/src/lib/ordered_cbuf.cc rename to core/src/stored/backends/ordered_cbuf.cc index ae977091957..b0bb8bb356e 100644 --- a/core/src/lib/ordered_cbuf.cc +++ b/core/src/stored/backends/ordered_cbuf.cc @@ -26,6 +26,7 @@ * Ordered Circular buffer used for producer/consumer problem with pthreads. */ #include "include/bareos.h" +namespace storagedaemon { #include "ordered_cbuf.h" /* @@ -417,3 +418,4 @@ int ordered_circbuf::flush() return 0; } +} /* namespace storagedaemon */ diff --git a/core/src/lib/ordered_cbuf.h b/core/src/stored/backends/ordered_cbuf.h similarity index 97% rename from core/src/lib/ordered_cbuf.h rename to core/src/stored/backends/ordered_cbuf.h index f4a4214f7f1..ab7bd8d6964 100644 --- a/core/src/lib/ordered_cbuf.h +++ b/core/src/stored/backends/ordered_cbuf.h @@ -26,6 +26,8 @@ * Ordered Circular buffer used for producer/consumer problem with pthread. */ +namespace storagedaemon { + #define OQSIZE 10 /* # of pointers in the queue */ enum oc_peek_types { @@ -93,3 +95,4 @@ inline ordered_circbuf::~ordered_circbuf() { destroy(); } +} /* namespace storagedaemon */