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

SEEK_HOLE returns -ENXIO if file ends at components boundary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Lustre 2.14.0
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      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

              People

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

                Dates

                Created:
                Updated:
                Resolved: