]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix FIONREAD on regular files. The computed result was being ignored and
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 3 May 2013 19:08:58 +0000 (19:08 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 3 May 2013 19:08:58 +0000 (19:08 +0000)
commitdfa66c01ae7922a1582edab2bf1e0e62042efca7
tree9f71a61a71448b959e4b046b7e95e860c09f40dd
parentf5c4b077be1174d93efa576dd5562308b1f7c229
Fix FIONREAD on regular files.  The computed result was being ignored and
it was being passed down to VOP_IOCTL() where it promptly resulted in
ENOTTY due to a missing else for the past 8 years.  While here, use a
shared vnode lock while fetching the current file's size.

MFC after: 1 week
sys/kern/vfs_vnops.c