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

SEEK_HOLE and SEEK_DATA support for lseek

Details

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

    Description

      lseek with SEEK_HOLE and SEEK_DATA are really helpful  and easy to use tools for any usersapce applications like copy and backup. Currently lustre has min support implementation as per the man page which is not that useful however lustre does support fiemap ioctl which can be used for mapping data in the file.
      As we already have support for fiemap I guess with some implementation lustre can support SEEK_HOLE and SEEK_DATA flags. I guess having this support will be helpful to deal with sparse files. Any feedback about the implementation will be really helpful.

      Attachments

        Issue Links

          Activity

            [LU-10810] SEEK_HOLE and SEEK_DATA support for lseek
            tappro Mikhail Pershin made changes -
            Link New: This issue is related to LU-14217 [ LU-14217 ]
            tappro Mikhail Pershin made changes -
            Link New: This issue is related to LU-14143 [ LU-14143 ]
            pjones Peter Jones made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            pjones Peter Jones made changes -
            Issue Type Original: New Feature [ 2 ] New: Improvement [ 4 ]
            tappro Mikhail Pershin made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            jhammond John Hammond made changes -
            Fix Version/s New: Lustre 2.14.0 [ 14490 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to DDN-1363 [ DDN-1363 ]
            jhammond John Hammond made changes -
            Assignee Original: WC Triage [ wc-triage ] New: Mikhail Pershin [ tappro ]
            adilger Andreas Dilger made changes -
            Link New: This issue duplicates LU-13397 [ LU-13397 ]
            simmonsja James A Simmons made changes -
            Link New: This issue is related to LU-11621 [ LU-11621 ]

            People

              tappro Mikhail Pershin
              ljaliminche Lokesh N J (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: