Skip to content

Commit b024d20

Browse files
committed
add example Lustre plugin for adding lustre stripe info to the DBs
1 parent 285bc75 commit b024d20

File tree

3 files changed

+427
-0
lines changed

3 files changed

+427
-0
lines changed

contrib/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,11 @@ foreach(file ${USEFUL})
132132
endforeach()
133133

134134
add_subdirectory(CI)
135+
136+
# See if lustre-devel is installed by checking if the lustreapi.h header is in a standard include path.
137+
find_path(LUSTRE_PLUGIN "lustre/lustreapi.h")
138+
# If so, build the lustre example plugin:
139+
if (LUSTRE_PLUGIN)
140+
add_library(lustre_plugin SHARED lustre_plugin.c)
141+
target_link_libraries(lustre_plugin lustreapi)
142+
endif()

contrib/liblustre_plugin.so

26.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)