Signed-off-by: Sage Weil <sage@redhat.com>
${BLKIN_LIBRARIES}
${CRYPTO_LIBS}
${CMAKE_THREAD_LIBS_INIT}
- ${CMAKE_DL_LIBS}
- ${UDEV_LIBRARIES})
+ ${CMAKE_DL_LIBS})
+if(HAVE_UDEV)
+ list(APPEND ceph_common_deps ${UDEV_LIBRARIES})
+endif()
if(HAVE_RDMA)
list(APPEND ceph_common_deps ${RDMA_LIBRARY})
endif()
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
-#include <libudev.h>
//#include "common/debug.h"
#include "include/uuid.h"
#include "blkdev.h"
#ifdef __linux__
+#include <libudev.h>
#include <linux/fs.h>
#include <blkid/blkid.h>
return false;
}
+std::string get_device_id(const std::string& devname)
+{
+ // FIXME: implement me for freebsd
+ return std::string();
+}
+
#else
int get_block_device_size(int fd, int64_t *psize)
{
{
return false;
}
+
+std::string get_device_id(const std::string& devname)
+{
+ // not implemented
+ return std::string();
+}
+
#endif