Skip to content

libceph: get rid of CEPH_MAX_OID_NAME_LEN limit

Ilya Dryomov ceph-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6libceph: make ceph_osdc_put_request() accept NULLfs/ceph/addr.c net/ceph/osd_client.c+8 -90 replies
2/6libceph: grab snapc in ceph_osdc_alloc_request()net/ceph/osd_client.c+4 -20 replies
3/6libceph: move message allocation out of ceph_osdc_alloc_request()drivers/block/rbd.c fs/ceph/addr.c fs/ceph/file.c +2 more+82 -400 replies
4/6libceph: change how osd_op_reply message size is calculatednet/ceph/osd_client.c+4 -100 replies
5/6libceph: variable-sized ceph_object_iddrivers/block/rbd.c fs/ceph/addr.c fs/ceph/file.c +5 more+150 -410 replies
6/6rbd: use header_oid instead of header_namedrivers/block/rbd.c+24 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] libceph: get rid of CEPH_MAX_OID_NAME_LEN limit

Hello,

I pushed wip-oid, to get rid of the annoying CEPH_MAX_OID_NAME_LEN limit on the length of an object name that libceph can work with, which translated into the limit of ~100 chars on the length of an rbd image name. The new image name limit is ~4000 chars. (The exact number depends on how many mon IPs and map options were specified - mons
+ options + image name string must fit into a single page.)

We should define a sensible limit and start enforcing it on rbd create/clone/etc and on open/rbd map. Limits from the lower layers

4096 - strlen(".rbd") on create for format 1 4096 - strlen("rbd_id.") on create for format 2 ~4000 on map

aren't something we want to rely on or support.

Thanks,

Ilya

Ilya Dryomov (6):
libceph: make ceph_osdc_put_request() accept NULL
libceph: grab snapc in ceph_osdc_alloc_request()
libceph: move message allocation out of ceph_osdc_alloc_request()
libceph: change how osd_op_reply message size is calculated
libceph: variable-sized ceph_object_id
rbd: use header_oid instead of header_name

 drivers/block/rbd.c             |  83 ++++++++++++++-------------
 fs/ceph/addr.c                  |  23 ++++----
 fs/ceph/file.c                  |   9 ++-
 fs/ceph/ioctl.c                 |   2 +-
 include/linux/ceph/osd_client.h |   1 +
 include/linux/ceph/osdmap.h     |  62 ++++++++++++---------
 net/ceph/debugfs.c              |   2 +-
 net/ceph/osd_client.c           | 120 ++++++++++++++++++++++------------------
 net/ceph/osdmap.c               |  93 ++++++++++++++++++++++++++++++-
 9 files changed, 266 insertions(+), 129 deletions(-)
Signature · 1 line
2.4.3