ceph: limit osd write size
OSD has a configurable limitation of max write size. OSD return error if write request size is larger than the limitation. For now, set max write size to CEPH_MSG_MAX_DATA_LEN. It should be small enough. Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
@@ -48,6 +48,9 @@
|
||||
|
||||
/* max size of osd read request, limited by libceph */
|
||||
#define CEPH_MAX_READ_SIZE CEPH_MSG_MAX_DATA_LEN
|
||||
/* osd has a configurable limitaion of max write size.
|
||||
* CEPH_MSG_MAX_DATA_LEN should be small enough. */
|
||||
#define CEPH_MAX_WRITE_SIZE CEPH_MSG_MAX_DATA_LEN
|
||||
#define CEPH_RASIZE_DEFAULT (8192*1024) /* max readahead */
|
||||
#define CEPH_MAX_READDIR_DEFAULT 1024
|
||||
#define CEPH_MAX_READDIR_BYTES_DEFAULT (512*1024)
|
||||
|
Reference in New Issue
Block a user