]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/,osd/: restructure the rados name length check
authorSamuel Just <sjust@redhat.com>
Fri, 1 Apr 2016 23:24:42 +0000 (16:24 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 8 Apr 2016 21:16:00 +0000 (14:16 -0700)
commit21487fd0c200f470eacbcc66aba3c9c4092dee6f
treecd7d3595023d810e3b8950a0acdbc649937f0fab
parent0f81ac5d874456f301b154ddce0fa6f02801e2ad
os/,osd/: restructure the rados name length check

Enforce locator length vs the max name length and also
introduce a namespace length limit.

In addition to these checks, also pass the head object to the
ObjectStore implementation to validate.  This allows LFNIndex to account
for the idiosyncracies of its filename escaping and for different xattr
value max sizes.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/common/config_opts.h
src/os/ObjectStore.h
src/os/bluestore/BlueStore.h
src/os/filestore/FileStore.cc
src/os/filestore/FileStore.h
src/os/filestore/LFNIndex.cc
src/os/filestore/LFNIndex.h
src/os/kstore/KStore.h
src/os/memstore/MemStore.h
src/osd/ReplicatedPG.cc