freebsd-nq/sys/fs
Jaakko Heinonen d467c9472a r222004 changed sbuf_finish() to not clear the buffer error status. As a
consequence sbuf_len() will return -1 for buffers which had the error
status set prior to sbuf_finish() call. This causes a problem in
pfs_read() which purposely uses a fixed size sbuf to discard bytes which
are not needed to fulfill the read request.

Work around the problem by using the full buffer length when
sbuf_finish() indicates an overflow. An overflowed sbuf with fixed size
is always full.

PR:		kern/163076
Approved by:	des
MFC after:	2 weeks
2012-01-06 10:12:59 +00:00
..
cd9660 This update changes the mnt_flag field in the mount structure from 2011-07-24 17:43:09 +00:00
coda Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
deadfs Add function vop_rename_fail(9) that performs needed cleanup for locks 2010-04-02 14:03:01 +00:00
devfs Explicitly use curthread while manipulating td_fpop during last close 2011-12-09 17:49:34 +00:00
ext2fs Migrate ufs and ext2fs from skpc() to memcchr(). 2012-01-01 20:47:33 +00:00
fdescfs Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
fifofs Initialize fifoinfo fi_wgen field on open. The only important is the 2011-12-04 19:25:49 +00:00
hpfs Add a lock flags argument to the VFS_FHTOVP() file system 2011-05-22 01:07:54 +00:00
msdosfs Discarding local array based on return values 2011-12-22 06:31:29 +00:00
nfs Use strchr() and strrchr(). 2012-01-02 12:12:10 +00:00
nfsclient During investigation of an NFSv4 client crash reported by glebius@, 2011-12-23 02:04:35 +00:00
nfsserver Patch the new NFS server in a manner analagous to r228520 for the 2011-12-16 00:58:41 +00:00
ntfs Minor cleanups to ntfs code 2012-01-03 19:09:01 +00:00
nullfs In sys/fs/nullfs/null_subr.c, in a KASSERT, output the correct vnode 2012-01-05 17:06:04 +00:00
nwfs Use strchr() and strrchr(). 2012-01-02 12:12:10 +00:00
portalfs Trace attempts to open a portal device. 2011-10-18 07:31:49 +00:00
procfs In procfs_doproccmdline() if arguments are not cashed read them from 2011-11-22 20:43:03 +00:00
pseudofs r222004 changed sbuf_finish() to not clear the buffer error status. As a 2012-01-06 10:12:59 +00:00
smbfs Use strchr() and strrchr(). 2012-01-02 12:12:10 +00:00
tmpfs Don't pass VM_ALLOC_ZERO to vm_page_grab() in tmpfs_mappedwrite() and 2012-01-03 03:29:01 +00:00
udf Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. 2011-11-07 06:44:47 +00:00
unionfs Make unionfs also clear VAPPEND when clearing VWRITE, since VAPPEND 2011-10-10 21:32:08 +00:00