libceph: bump CEPH_MSG_MAX_DATA_LEN (again)
authorIlya Dryomov <idryomov@gmail.com>
Mon, 8 Apr 2019 12:16:05 +0000 (14:16 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:45 +0000 (14:01 +0200)
This time for rbd object map.  Object maps are limited in size to
256000000 objects, two bits per object.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
include/linux/ceph/libceph.h

index a3cddf5f0e604fe084ff24687ea0d8e7b5cc3eca..82156da3c6501e12a7bb6d9dcca3108ccefc0593 100644 (file)
@@ -84,11 +84,13 @@ struct ceph_options {
 #define CEPH_MSG_MAX_MIDDLE_LEN        (16*1024*1024)
 
 /*
- * Handle the largest possible rbd object in one message.
+ * The largest possible rbd data object is 32M.
+ * The largest possible rbd object map object is 64M.
+ *
  * There is no limit on the size of cephfs objects, but it has to obey
  * rsize and wsize mount options anyway.
  */
-#define CEPH_MSG_MAX_DATA_LEN  (32*1024*1024)
+#define CEPH_MSG_MAX_DATA_LEN  (64*1024*1024)
 
 #define CEPH_AUTH_NAME_DEFAULT   "guest"