]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: Allocate larger oid buffer in request msgs
authorStratos Psomadakis <psomas@grnet.gr>
Thu, 10 Nov 2011 13:45:37 +0000 (15:45 +0200)
committerSage Weil <sage@newdream.net>
Fri, 11 Nov 2011 17:50:19 +0000 (09:50 -0800)
commita56081dc96ad323ae77d4144a9525ec421fcecf7
tree0a8fe8063e904eebc2f591607faf8711b78016f8
parent112e9f976e563c940f96989898552a703270ceb3
libceph: Allocate larger oid buffer in request msgs

ceph_osd_request struct allocates a 40-byte buffer for object names.
RBD image names can be up to 96 chars long (100 with the .rbd suffix),
which results in the object name for the image being truncated, and a
subsequent map failure.

Increase the oid buffer in request messages, in order to avoid the
truncation.

Signed-off-by: Stratos Psomadakis <psomas@grnet.gr>
Signed-off-by: Sage Weil <sage@newdream.net>
include/linux/ceph/osd_client.h
net/ceph/osd_client.c