diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2019-12-01 13:57:28 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2020-01-06 07:49:47 +0000 |
commit | f72e2b00a13709717a6c7e0ff95d4c7a8f58b020 (patch) | |
tree | 57b2fb81fb6d9493b73e5a001558412bff415f16 /xlators/performance | |
parent | f66bd85af09397300ad434655fc68861f48c2e3c (diff) |
posix-metadata.c: try to getxattr in one call.
Another location where instead of 2 sys calls we strive to get the
xattr in a single call, by guesstimating the required size
And avoid (or try to) not to first read the xattr len,
then another call to actually fetch. Instead, use a sane size
(256 bytes - worth checking if it makes sense or by default
use a larger size), and see if we can fetch it.
If we fail, we'll read the size and re-fetch.
Such changes are needed elsewhere too (see
https://github.com/gluster/glusterfs/issues/720 )
Change-Id: I466cea9d8b12fc45f6b37d202b1294ca28cd1fdd
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/performance')
0 files changed, 0 insertions, 0 deletions