]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 250220:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 Jun 2013 22:06:45 +0000 (22:06 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 Jun 2013 22:06:45 +0000 (22:06 +0000)
commita2f21b2bac3f6ecc1b7fb65f67070da89feba1a0
treeb1448e6ecc25d71480b63e321d50ce7db1114444
parent4b1d238e9a81fa0b060c045a04e6a4a103363f46
MFC 250220:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@251764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/vfs_vnops.c