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

Add llapi_layout_get_by_xattr() interface

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.0
    • None
    • 9223372036854775807

    Description

      The code in llapi_layout_get_by_fd() should be abstracted into a new llapi_layout_get_by_xattr() helper function, which is used by the upper layers and can also be used on a "lov" xattr regardless of how it is obtained. That is useful if the xattr has been fetched from some other method, or a tarball or HSM archive, etc.

      Attachments

        Issue Links

          Activity

            [LU-11417] Add llapi_layout_get_by_xattr() interface
            pjones Peter Jones added a comment -

            Landed for 2.12

            pjones Peter Jones added a comment - Landed for 2.12

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33230/
            Subject: LU-11417 llapi: add llapi_layout_get_by_xattr(3) API
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 30d55877c30ca06db4003b70025fcc526e144569

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33230/ Subject: LU-11417 llapi: add llapi_layout_get_by_xattr(3) API Project: fs/lustre-release Branch: master Current Patch Set: Commit: 30d55877c30ca06db4003b70025fcc526e144569

            Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33230
            Subject: LU-11417 llapi: add llapi_layout_get_by_xattr(3) API
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 96825476a539c5a4374063c74f3fa447ac53d6db

            gerrit Gerrit Updater added a comment - Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33230 Subject: LU-11417 llapi: add llapi_layout_get_by_xattr(3) API Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 96825476a539c5a4374063c74f3fa447ac53d6db
            adilger Andreas Dilger added a comment - - edited

            In fact, llapi_layout_from_lum() already exists, but it is currently a static internal interface that is passed a "struct lov_user_md" but that often isn't even the real structure type. It would be more useful to have the proposed llapi_layout_get_by_xattr(char *lov_user_md, size_t lum_size) interface as a thin wrapper for the internal interface.

            adilger Andreas Dilger added a comment - - edited In fact, llapi_layout_from_lum() already exists, but it is currently a static internal interface that is passed a " struct lov_user_md " but that often isn't even the real structure type. It would be more useful to have the proposed llapi_layout_get_by_xattr(char *lov_user_md, size_t lum_size) interface as a thin wrapper for the internal interface.

            People

              adilger Andreas Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: