Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      It would be possible to implement the fallocate(FALLOC_FL_ZERO_RANGE) option for Lustre. This would need the OST thread performing the operation to get PW extent locks (and possibly the PW lock on the MDT for DOM files) in order to ensure the client cache is flushed, since it is modifying the file's data.

      For ldiskfs this would be passed down to the ldiskfs fallocate() call. I'm not sure whether ZFS supports zeroing blocks or not, but it could also be mapped to FALLOC_FL_PUNCH_HOLE on ZFS to provide functionally equivalent behavior (due to COW needing to allocate new blocks anyway).
      .

      Attachments

        Issue Links

          Activity

            [LU-17055] Implement FALLOC_FL_ZERO_RANGE

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57763/
            Subject: LU-17055 ldiskfs: add falloc(zero) for OST/ext
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: f57455ffa2871ab31a3e8f3a78e0f5e3b9110586

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57763/ Subject: LU-17055 ldiskfs: add falloc(zero) for OST/ext Project: fs/lustre-release Branch: master Current Patch Set: Commit: f57455ffa2871ab31a3e8f3a78e0f5e3b9110586

            "kg.xu <squalfof@gmail.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57763
            Subject: LU-17055 ldiskfs: add falloc(zero) for OST/ext
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: e839f0087309356906342930f1d0df18f7cbb139

            gerrit Gerrit Updater added a comment - "kg.xu <squalfof@gmail.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57763 Subject: LU-17055 ldiskfs: add falloc(zero) for OST/ext Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e839f0087309356906342930f1d0df18f7cbb139

            "kg.xu <squalfof@gmail.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57246
            Subject: LU-17055 ldiskfs: add Zero-Range mode to fallocate
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: e2b2f8b6b49843f7e2e76a74815a83ca6e85b01d

            gerrit Gerrit Updater added a comment - "kg.xu <squalfof@gmail.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57246 Subject: LU-17055 ldiskfs: add Zero-Range mode to fallocate Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e2b2f8b6b49843f7e2e76a74815a83ca6e85b01d

            People

              squalfof Keguang Xu
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: