summaryrefslogtreecommitdiffstats
path: root/src/librbd/migration/SourceSpecBuilder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/librbd/migration/SourceSpecBuilder.cc')
-rw-r--r--src/librbd/migration/SourceSpecBuilder.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/librbd/migration/SourceSpecBuilder.cc b/src/librbd/migration/SourceSpecBuilder.cc
index f44d97d58f1..78937db99b3 100644
--- a/src/librbd/migration/SourceSpecBuilder.cc
+++ b/src/librbd/migration/SourceSpecBuilder.cc
@@ -7,6 +7,9 @@
#include "librbd/migration/FileStream.h"
#include "librbd/migration/HttpStream.h"
#include "librbd/migration/S3Stream.h"
+#if defined(HAVE_LIBNBD)
+#include "librbd/migration/NBDStream.h"
+#endif
#include "librbd/migration/NativeFormat.h"
#include "librbd/migration/QCOWFormat.h"
#include "librbd/migration/RawFormat.h"
@@ -125,6 +128,10 @@ int SourceSpecBuilder<I>::build_stream(
stream->reset(HttpStream<I>::create(m_image_ctx, stream_obj));
} else if (type == "s3") {
stream->reset(S3Stream<I>::create(m_image_ctx, stream_obj));
+#if defined(HAVE_LIBNBD)
+ } else if (type == "nbd") {
+ stream->reset(NBDStream<I>::create(m_image_ctx, stream_obj));
+#endif
} else {
lderr(cct) << "unknown or unsupported stream type '" << type << "'"
<< dendl;