Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-3602

make utility functions availalbe to user space

Details

    • Improvement
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            [LU-3602] make utility functions availalbe to user space
            adilger Andreas Dilger made changes -
            Resolution New: Won't Do [ 10200 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

            Is this still needed?

            simmonsja James A Simmons added a comment - Is this still needed?
            adilger Andreas Dilger made changes -
            Labels Original: llnl New: llapi llnl usability
            pjones Peter Jones made changes -
            End date New: 10/Aug/15
            Start date New: 17/Jul/13
            pjones Peter Jones made changes -
            Fix Version/s Original: Lustre 2.8.0 [ 11113 ]

            This should be considered for LU-5969.

            adilger Andreas Dilger added a comment - This should be considered for LU-5969 .
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-5969 [ LU-5969 ]
            jlevi Jodi Levi (Inactive) made changes -
            Fix Version/s New: Lustre 2.8.0 [ 11113 ]
            Fix Version/s Original: Lustre 2.7.0 [ 10631 ]
            morrone Christopher Morrone (Inactive) made changes -
            Labels New: llnl
            jlevi Jodi Levi (Inactive) made changes -
            Fix Version/s New: Lustre 2.7.0 [ 10631 ]
            Fix Version/s Original: Lustre 2.6.0 [ 10595 ]

            People

              laisiyao Lai Siyao
              nedbass Ned Bass (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: