|
@@ -26,7 +26,9 @@ static const struct nfsd4_callback_ops nfsd4_cb_layout_ops;
|
|
|
static const struct lock_manager_operations nfsd4_layouts_lm_ops;
|
|
|
|
|
|
const struct nfsd4_layout_ops *nfsd4_layout_ops[LAYOUT_TYPE_MAX] = {
|
|
|
+#ifdef CONFIG_NFSD_BLOCKLAYOUT
|
|
|
[LAYOUT_BLOCK_VOLUME] = &bl_layout_ops,
|
|
|
+#endif
|
|
|
};
|
|
|
|
|
|
/* pNFS device ID to export fsid mapping */
|
|
@@ -121,10 +123,12 @@ void nfsd4_setup_layout_type(struct svc_export *exp)
|
|
|
if (!(exp->ex_flags & NFSEXP_PNFS))
|
|
|
return;
|
|
|
|
|
|
+#ifdef CONFIG_NFSD_BLOCKLAYOUT
|
|
|
if (sb->s_export_op->get_uuid &&
|
|
|
sb->s_export_op->map_blocks &&
|
|
|
sb->s_export_op->commit_blocks)
|
|
|
exp->ex_layout_type = LAYOUT_BLOCK_VOLUME;
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
static void
|