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

Lustre fiemap does not properly handle fm_extent_count=0

Details

    • 3
    • 9223372036854775807

    Description

      "fm_extent_count specifies the number of elements in the fm_extents[] array that can be used to return extents. If fm_extent_count is zero, then the fm_extents[] array is ignored (no extents will be returned), and the fm_mapped_extents count will hold the number of extents needed in fm_extents[] to hold the file’s current mapping."

       

      https://www.kernel.org/doc/html/latest/filesystems/fiemap.html

       

      In practice, depending on the state of the kernel thread stack, EINVAL can be returned to userspace even for simple single stripe files.

       

      Details will follow.

      Attachments

        Issue Links

          Activity

            [LU-16480] Lustre fiemap does not properly handle fm_extent_count=0

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/52308/
            Subject: LU-16480 lov: fiemap improperly handles fm_extent_count=0
            Project: fs/lustre-release
            Branch: b2_15
            Current Patch Set:
            Commit: f8b92476350115e85efe77be8711d25b6a0ec9f7

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/52308/ Subject: LU-16480 lov: fiemap improperly handles fm_extent_count=0 Project: fs/lustre-release Branch: b2_15 Current Patch Set: Commit: f8b92476350115e85efe77be8711d25b6a0ec9f7

            "Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/52308
            Subject: LU-16480 lov: fiemap improperly handles fm_extent_count=0
            Project: fs/lustre-release
            Branch: b2_15
            Current Patch Set: 1
            Commit: 761fe3e18a625d0abf6168a1f6f3d3ce6a10af2b

            gerrit Gerrit Updater added a comment - "Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/52308 Subject: LU-16480 lov: fiemap improperly handles fm_extent_count=0 Project: fs/lustre-release Branch: b2_15 Current Patch Set: 1 Commit: 761fe3e18a625d0abf6168a1f6f3d3ce6a10af2b
            pjones Peter Jones added a comment -

            Landed for 2.16

            pjones Peter Jones added a comment - Landed for 2.16

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49645/
            Subject: LU-16480 lov: fiemap improperly handles fm_extent_count=0
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 829af7b029d8e4e391b93792bf5214611b0193bd

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49645/ Subject: LU-16480 lov: fiemap improperly handles fm_extent_count=0 Project: fs/lustre-release Branch: master Current Patch Set: Commit: 829af7b029d8e4e391b93792bf5214611b0193bd

            "Andrew Perepechko <andrew.perepechko@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49645
            Subject: LU-16480 lov: fiemap improperly handles fm_extent_count=0
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: b787e4d0cf40569121980d2a984e0ae7f1b255b0

            gerrit Gerrit Updater added a comment - "Andrew Perepechko <andrew.perepechko@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49645 Subject: LU-16480 lov: fiemap improperly handles fm_extent_count=0 Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b787e4d0cf40569121980d2a984e0ae7f1b255b0

            People

              panda Andrew Perepechko
              panda Andrew Perepechko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: