]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common, os: Perform xattr handling based on detected fs type 667/head
authorDavid Zafman <david.zafman@inktank.com>
Mon, 30 Sep 2013 22:53:35 +0000 (15:53 -0700)
committerDavid Zafman <david.zafman@inktank.com>
Fri, 4 Oct 2013 21:10:01 +0000 (14:10 -0700)
commitbb9b9c89537b10482d31b93e26b810edafb3492a
tree2349ab1cb62f5db9f0e836ee1c23c45e11c11eb1
parentdc0dfb9e01d593afdd430ca776cf4da2c2240a20
common, os: Perform xattr handling based on detected fs type

In FileStore::_detect_fs() store discovered filesystem type in m_fs_type
Add per-filesystem filestore_max_inline_xattr_size_* variants
Add per-filesystem filestore_max_inline_xattrs_* variants
New function set_xattr_limits_via_conf()
  Set m_filestore_max_inline_xattr_size based on override or fs type
  Set m_filestore_max_inline_xattrs based on override or fs type
Handle conf change of any relevant value by calling set_xattr_limits_via_conf()
Change filestore_max_inline_xattr_size to override if non-zero
Change filestore_max_inline_xattrs to override if non-zero

Fixes: #6143
Signed-off-by: David Zafman <david.zafman@inktank.com>
src/common/config_opts.h
src/os/FileStore.cc
src/os/FileStore.h