]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/filestore: Fix erroneous WARNING: max attr too small 11246/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 28 Sep 2016 04:50:28 +0000 (14:50 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 27 Oct 2016 06:02:09 +0000 (16:02 +1000)
commita54c86f9dfbc0540a36decec38fb50e33c8822d9
tree66707834f55aa08cd88e6668747172778a15b751
parent928c3c30f129909609a189c489662aa5ec175357
os/filestore: Fix erroneous WARNING: max attr too small

When we read the conf values from the conf file we call handle_conf_change which
calls set_xattr_limits_via_conf but this is before m_fs_type is initialised so
we fall through to the default comaprison with
filestore_max_xattr_value_size_other (1024) and erroneously issue the warning.
This happens at every startup but subsequent calls once the filestore is mounted
proceed as expected. Don't call set_xattr_limits_via_conf unless the filestore
is mounted.

Fixes: http://tracker.ceph.com/issues/17420
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/os/filestore/FileStore.cc