From f07f394d03818cd73209dbc3e5925f515caad562 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Thu, 12 Mar 2015 14:11:04 +0800 Subject: [PATCH] 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 --- src/os/FileStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3