summaryrefslogtreecommitdiffstats
path: root/xlators/storage/bd_map/src/bd_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/bd_map/src/bd_map.h')
-rw-r--r--xlators/storage/bd_map/src/bd_map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/storage/bd_map/src/bd_map.h b/xlators/storage/bd_map/src/bd_map.h
index 1a0f424..fa10e97 100644
--- a/xlators/storage/bd_map/src/bd_map.h
+++ b/xlators/storage/bd_map/src/bd_map.h
@@ -30,6 +30,12 @@
#define BACKEND_VG "vg"
+/* lvm2-2.02.79 added this in lvm2app.h, but it is available for linking in
+ * older versions already */
+#if NEED_LVM_LV_FROM_NAME_DECL
+lv_t lvm_lv_from_name(vg_t vg, const char *name);
+#endif
+
enum gf_bd_mem_types_ {
gf_bd_fd = gf_common_mt_end + 1,
gf_bd_private,