Re: svn commit: r250220 - head/sys/kern

2013-05-11 Thread Bruce Evans
On Fri, 10 May 2013, John Baldwin wrote: On Thursday, May 09, 2013 11:05:46 pm Bruce Evans wrote: On Mon, 6 May 2013, John Baldwin wrote: ... static int vn_ioctl(fp, com, data, active_cred, td) struct file *fp; u_long com; void *data; struct ucred *active_cred;

Re: svn commit: r250220 - head/sys/kern

2013-05-10 Thread John Baldwin
On Thursday, May 09, 2013 11:05:46 pm Bruce Evans wrote: On Mon, 6 May 2013, John Baldwin wrote: On Saturday, May 04, 2013 4:47:43 am Bruce Evans wrote: Log: Fix FIONREAD on regular files. The computed result was being ignored and it was being passed down to VOP_IOCTL() where it

Re: svn commit: r250220 - head/sys/kern

2013-05-09 Thread Bruce Evans
On Mon, 6 May 2013, John Baldwin wrote: On Saturday, May 04, 2013 4:47:43 am Bruce Evans wrote: Log: 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

Re: svn commit: r250220 - head/sys/kern

2013-05-06 Thread John Baldwin
On Saturday, May 04, 2013 4:47:43 am Bruce Evans wrote: Log: 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

Re: svn commit: r250220 - head/sys/kern

2013-05-04 Thread Bruce Evans
Log: 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. In another

svn commit: r250220 - head/sys/kern

2013-05-03 Thread John Baldwin
Author: jhb Date: Fri May 3 19:08:58 2013 New Revision: 250220 URL: http://svnweb.freebsd.org/changeset/base/250220 Log: 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