Project

General

Profile

Actions

Feature #4923

closed

want preadv and pwritev

Added by Daniel Hoffman almost 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Low
Category:
kernel
Start date:
2014-06-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-review
Gerrit CR:
External Bug:

Description

preadv and pwritev are not yet implemented in illumos. These system calls provide support for io vector support for arbitrary offset i/o.

Actions #1

Updated by Daniel Hoffman almost 9 years ago

  • % Done changed from 100 to 90

preadv and pwritev are not standard system calls, but they exist in linux (see http://linux.die.net/man/2/preadv) and BSD (http://www.freebsd.org/cgi/man.cgi?query=read&sektion=2&manpath=FreeBSD+7.0-RELEASE), so adding them to illumos seems advantageous.

Actions #2

Updated by Igor Pashev almost 9 years ago

Please, whatever you do, don't break existing syscalls.

Actions #3

Updated by Daniel Hoffman almost 9 years ago

I have a webrev here if anyone would like to give feedback.

http://us-east.manta.joyent.com/dj.hoffman/public/preadv-pwritev-4/index.html

Actions #4

Updated by Jason King almost 9 years ago

Line 950:
Use boolean_t for boolean variables

Line 1176:
I suspect this should be 'CPU_STATS_ADDQ(cp, sys, (write) ? syswrite : sysread, 1); or just add the lines to the if statement just below it

Actions #5

Updated by Daniel Hoffman almost 9 years ago

It should be in the if statement, because CPU_STATS_ADDQ expands into a macro that glues together a function name from the inputs, so the ternary operator doesn't work.

Updated with Jason's comments.

Actions #6

Updated by Electric Monk about 8 years ago

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

git commit fca543ca45b12c44a243625bce68b645ba8ed791

commit  fca543ca45b12c44a243625bce68b645ba8ed791
Author: DJ Hoffman <dj.hoffman@joyent.com>
Date:   2015-01-14T21:51:40.000Z

    4923 want preadv and pwritev
    Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
    Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com>
    Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Garrett D'Amore <garrett@damore.org>

Actions

Also available in: Atom PDF