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

SEEK_HOLE returns -ENXIO if file ends at components boundary

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Correct return value should be the end of file. LOV skips hole offset is it is equal to component end, because component 'end' value is actually the next component 'start' and belongs to it, so LOV expects the next component to continue and report an offset. This doesn't work if next component is not initialized, i.e. file ends exactly at the component boundary, so the next component is not involved in IO even.

      To solve that issue, LOV should remember reported hole offsets if they are at the component end and report the maximum one if neither component returned valid offset

      Attachments

        Issue Links

          Activity

            [LU-14143] SEEK_HOLE returns -ENXIO if file ends at components boundary
            pjones Peter Jones added a comment -

            Landed for 2.14

            pjones Peter Jones added a comment - Landed for 2.14

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40713/
            Subject: LU-14143 lov: fix SEEK_HOLE calcs at component end
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: dbb6b493ad9f989197401bdfec72b93bbb7a8faf

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40713/ Subject: LU-14143 lov: fix SEEK_HOLE calcs at component end Project: fs/lustre-release Branch: master Current Patch Set: Commit: dbb6b493ad9f989197401bdfec72b93bbb7a8faf

            Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40713
            Subject: LU-14143 lov: fix SEEK_HOLE calcs at component end
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 5ed6d568c444067fff78fff346e5dd3f3f51a227

            gerrit Gerrit Updater added a comment - Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40713 Subject: LU-14143 lov: fix SEEK_HOLE calcs at component end Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 5ed6d568c444067fff78fff346e5dd3f3f51a227

            People

              tappro Mikhail Pershin
              tappro Mikhail Pershin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: