[LU-3602] make utility functions availalbe to user space Created: 17/Jul/13  Updated: 07/Jun/16

Status: In Progress
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Ned Bass Assignee: Lai Siyao
Resolution: Unresolved Votes: 0
Labels: llnl

Issue Links:
Related
is related to LU-2182 Add llapi_file_get_layout() function ... Closed
is related to LU-2973 lov_mds_md not swabbed in ll_getxattr Closed
is related to LU-5969 Create an LGPL version of liblustreapi Open
Rank (Obsolete): 9143

 Description   

In LU-2973 we decided that user-space callers of lgetxattr() should be responsible for swabbing the value of "lustre.lov" as needed. This issue is to discuss how best to make utility functions (for swabbing, comparing, etc. of data structures like lov_user_md and lu_fid) available to both kernel and user space.

The swabbing functions are implemented in ptlrpc/pack_generic.c with extern declarations in lustre_idl.h. While these are compiled in a user-space library if liblustre is enabled, it would be nice to make them available in a generic way for liblustreapi (i.e. for LU-2182). That is, liblustre should not be a dependency for liblustreapi. Perhaps such utility functions can be refactored into a generic library that can be linked to from kernel and user code.



 Comments   
Comment by Peter Jones [ 17/Jul/13 ]

Lai

Could you please comment on this one?

Peter

Comment by Lai Siyao [ 24/Jul/13 ]

patch is on http://review.whamcloud.com/#/c/7096/

Comment by Peter Jones [ 05/Sep/13 ]

Are there any plans to land the above patch to master?

Comment by Andreas Dilger [ 03/Dec/14 ]

This should be considered for LU-5969.

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