Bug 1460658

Summary: Avoid one extra call of l(get|list)xattr system call after use buffer in posix_getxattr
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Mohit Agrawal <moagrawa>
Component: posixAssignee: Mohit Agrawal <moagrawa>
Status: CLOSED CURRENTRELEASE QA Contact: Rahul Hinduja <rhinduja>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: amukherj, nchilaka, pkarampu, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.12.2-18 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1460659 (view as bug list) Environment:
Last Closed: 2018-11-19 04:51:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1460659    

Description Mohit Agrawal 2017-06-12 10:58:07 UTC
Description of problem:
In posix xlator posix_(f)getxattr is calling system call(sys_lgetxattr) two times to fetch the xattr value, after use the buffer for first time calling we can avoid second attempt of calling system call(sys_lgetxattr) in posix_getxattr. 

Version-Release number of selected component (if applicable):

All version
How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Atin Mukherjee 2017-06-12 11:38:43 UTC
Isn't this an enhancement? If so, please mark it as RFE is the summary and move it to 3.3.0-beyond.

Comment 3 Atin Mukherjee 2017-06-13 08:50:19 UTC
Given this is an enhancement, the bug is deferred from rhgs-3.3.0

Comment 6 Red Hat Bugzilla 2023-09-14 03:59:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days