sys/kern/kern_sysctl.c
In fill_file2(...)
kf->f_wbytes = fp->f_rbytes
This produces erroneous output in fstat. Diff is below if this is
indeed a typo.
Index: kern_sysctl.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_sysctl.c,v
retrieving revision 1.217
diff -N -u -p kern_sysctl.c
--- kern_sysctl.c 23 Mar 2012 15:51:26 -0000 1.217
+++ kern_sysctl.c 28 Mar 2012 07:55:55 -0000
@@ -1092,7 +1092,7 @@ fill_file2(struct kinfo_file2 *kf, struct file
*fp, st
kf->f_rwfer = fp->f_wxfer;
kf->f_seek = fp->f_seek;
kf->f_rbytes = fp->f_rbytes;
- kf->f_wbytes = fp->f_rbytes;
+ kf->f_wbytes = fp->f_wbytes;
} else
kf->f_offset = -1;
} else if (vp != NULL) {