git: kernel -- Add O_FRNONBLOCKING, to allow reads which do not block on disk accesses.

Venkatesh Srinivas vsrinivas at crater.dragonflybsd.org
Wed Feb 23 07:16:07 PST 2011


commit 638e2d2dbe6f53c8cedaba64a0c882abf747f667
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date:   Wed Feb 23 07:12:20 2011 -0800

    kernel -- Add O_FRNONBLOCKING, to allow reads which do not block on disk accesses.
    
    Using extpread() or extpreadv() with O_FRNONBLOCKING on HAMMER file systems now allows
    reads to return EWOULDBLOCK when the requested data is not in the buffer cache.

Summary of changes:
 sys/kern/vfs_vnops.c          |    4 +++-
 sys/sys/fcntl.h               |    3 ++-
 sys/sys/vnode.h               |    1 +
 sys/vfs/hammer/hammer_vnops.c |    3 +++
 4 files changed, 9 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/638e2d2dbe6f53c8cedaba64a0c882abf747f667


-- 
DragonFly BSD source repository





More information about the Commits mailing list