For backwards compatibility and upgrade reasons, the librados2
API needs to be preserved and it needs to continue to be compatible
with dependent libraries like librbd1.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
If the 'if' clause ends executing a goto, there is no need for an else
clause that only prints a message about the success of the action.
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
If the 'if' clause ends executing a goto, there is no need for an else
clause that only prints a message about the success of the action.
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
109e6022beb0920f2a4746bd8c541e975494f251 introduced "-lboost_system" into
example/librados/Makefile but the Boost system library is no longer required
to compile and link hello_world.cc.
Fixes: http://tracker.ceph.com/issues/25054
Signed-off-by: Nathan Cutler <ncutler@suse.com>
The library link order in librados example Makefile is incorrect
and as a result 'make' throws an error. This change fixes the order.
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
/bin/bash is a Linuxism. Other operating systems install bash to
different paths. Use /usr/bin/env in shebangs to find bash.
Signed-off-by: Alan Somers <asomers@gmail.com>
Fixes#15100. The Makefile now by default links and includes from the
current source tree's librados and offers another option for building
examples against the system's.
Signed-off-by: Jesse Williamson <nerd.cpp@gmail.com>
Copy contents of bufferlist to a string before sending to stdout since a
bufferlist is not null terminated.
Fixes: #7822
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>