[LU-1533] return the wrong size in ll_getxattr Created: 15/Jun/12  Updated: 09/Jan/20  Resolved: 09/Jan/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Di Wang Assignee: Di Wang
Resolution: Cannot Reproduce Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9752

 Description   

In ll_getxattr,
if (size == 0 && S_ISDIR(inode->i_mode)) {
/* XXX directory EA is fix for now, optimize to save

  • RPC transfer */
    GOTO(out, rc = sizeof(struct lov_user_md));
    when size == 0, it return the size of lov_user_md(lov_user_md_v1) as the LOV size. And if we set pool inside default EA, the return size would be less than the actual EA size(lov_user_md_v3). Then we will get error during rsync (with enable xattr).


 Comments   
Comment by Di Wang [ 15/Jun/12 ]

http://review.whamcloud.com/3116

Comment by Andreas Dilger [ 09/Jan/20 ]

Close old bug.

Generated at Sat Feb 10 01:17:29 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.