[LU-2973] lov_mds_md not swabbed in ll_getxattr Created: 15/Mar/13  Updated: 29/Apr/15  Resolved: 24/May/13

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ned Bass Assignee: Keith Mannthey (Inactive)
Resolution: Not a Bug Votes: 0
Labels: endianness, patch
Environment:

ppc Linux client


Attachments: File xattr_test.c    
Issue Links:
Related
is related to LU-6536 lum->lmm_stripe_count used unswabbed ... Resolved
is related to LU-3268 lod_verify_striping(): bad userland L... Resolved
is related to LU-3284 some stripe ioctl() handling issues a... Closed
is related to LU-3602 make utility functions availalbe to u... In Progress
Severity: 3
Rank (Obsolete): 7244

 Description   

Striping data obtained via getxattr() is not byte-swapped before returning it to the user. The attached C program demonstrates the problem and produces the following output on a PPC client.

Expected stripe size 2097152, got 8192
Expected stripe count 3, got 768
Expected lmm magic 0bd10bd0, got d00bd10b

I've taken a stab at a fix which I'll push to gerrit.



 Comments   
Comment by Ned Bass [ 15/Mar/13 ]

Patch for master is here:

http://review.whamcloud.com/#change,5737

Comment by Peter Jones [ 16/Mar/13 ]

Keith

Can you please take care of this one?

Thanks

Peter

Comment by Keith Mannthey (Inactive) [ 24/May/13 ]

Userspace will deal with the swabbing. Patch abandoned.

Comment by Ned Bass [ 18/Jul/13 ]

Verified complete, closing.

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