kernel -- Add O_FRNONBLOCKING, to allow reads which do not block on disk accesses.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Wed, 23 Feb 2011 15:12:20 +0000 (07:12 -0800)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Wed, 23 Feb 2011 15:12:20 +0000 (07:12 -0800)
commit638e2d2dbe6f53c8cedaba64a0c882abf747f667
tree7ac9280af229706e29d0a96cefd1c2a868baa133
parentb62480e30a9eef7160cfff8c85edc9f1ca2bd2e5
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.
sys/kern/vfs_vnops.c
sys/sys/fcntl.h
sys/sys/vnode.h
sys/vfs/hammer/hammer_vnops.c