From: Jianpeng Ma Date: Thu, 12 Mar 2015 06:11:04 +0000 (+0800) Subject: os/FileStore: For getxattr, enlarge the value size avoid try again. X-Git-Tag: v9.0.0~91^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f07f394d03818cd73209dbc3e5925f515caad562;p=ceph.git os/FileStore: For getxattr, enlarge the value size avoid try again. Even the size of content of user.ceph._ is larger than 100. It will try again. Avoid this, enlarge the buffer size which use CHAIN_XATTR_MAX_BLOCK_LEN. Signed-off-by: Jianpeng Ma --- diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index f6c3bb872a2e..5645c940a3af 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -3745,7 +3745,7 @@ int FileStore::snapshot(const string& name) int FileStore::_fgetattr(int fd, const char *name, bufferptr& bp) { - char val[100]; + char val[CHAIN_XATTR_MAX_BLOCK_LEN]; int l = chain_fgetxattr(fd, name, val, sizeof(val)); if (l >= 0) { bp = buffer::create(l);