]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: add config for osd_max_attr_name_len = 100
authorSage Weil <sage@redhat.com>
Fri, 18 Jul 2014 17:44:49 +0000 (10:44 -0700)
committerSage Weil <sage@redhat.com>
Fri, 18 Jul 2014 17:44:49 +0000 (10:44 -0700)
commitbd3367eafb6568d96c9d1d28653af00d4bd94593
treebc08c49858dac0f0594382f8730d18422d397d42
parent7c0b2a05b962b61a8778f97a6e36883d53a0724a
osd: add config for osd_max_attr_name_len = 100

Set a limit on the length of an attr name.  The fs can only take 128
bytes, but we were not imposing any limit.

Add a test.

Reported-by: Haomai Wang <haomaiwang@gmail.com>
Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config_opts.h
src/osd/ReplicatedPG.cc
src/test/librados/misc.cc