Project

General

Profile

Bug #12343

Direct IO support

Added by Jerry Jelinek 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Port from OpenZFS
a584ef2605 Direct IO support

#1

Updated by Jerry Jelinek 8 months ago

There is actually nothing to port from the OpenZFS commit a584ef2605. There are no actual changes to the ZFS code in that commit, just changes to their interface into Linux to enable the use of O_DIRECT. Instead, for illumos we need to enable the use of the (private) _FIODIRECTIO ioctl for ZFS.

Enabling the use of O_DIRECT on illumos is a separate issue.

#2

Updated by Jerry Jelinek 8 months ago

There is nothing in the zfs test suite which uses the illumos directio function, so I wrote a simple test program and verified that directio fails on a zfs file without this change and that it succeeds after this change.

#3

Updated by Electric Monk 8 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit aaa9aa59eb29d123223ea0b8ebf393049910d9ce

commit  aaa9aa59eb29d123223ea0b8ebf393049910d9ce
Author: Jerry Jelinek <jerry.jelinek@joyent.com>
Date:   2020-03-02T19:36:48.000Z

    12343 Direct IO support
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF