]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: bypass large image creation check of object-map disabled
authorJason Dillaman <dillaman@redhat.com>
Mon, 17 Jul 2017 04:08:00 +0000 (00:08 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 18 Jul 2017 14:47:49 +0000 (10:47 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/CreateRequest.cc

index 6ebfebbfd45a9e329329bf77b39b29faed9d0d00..f7376db9a85e6a21105918a950f4d4e68486f87c 100644 (file)
@@ -257,7 +257,8 @@ void CreateRequest<I>::send() {
     return;
   }
 
-  if (!validate_layout(m_cct, m_size, m_layout)) {
+  if (((m_features & RBD_FEATURE_OBJECT_MAP) != 0) &&
+      (!validate_layout(m_cct, m_size, m_layout))) {
     complete(-EINVAL);
     return;
   }