struct statfs reads/writes changes?

Joe Marcus Clarke marcus at marcuscom.com
Sat Mar 12 13:06:23 PST 2005


I have some code that counts f_syncwrites, f_asyncwrites, f_syncreads,
and f_asyncreads from struct statfs to get rough file system reads and
writes statistics.  The code works under RELENG_4 and RELENG_5, but not
under -CURRENT.  Under -CURRENT, all the counters are 0.  Is this by
design, and if so, what should I be using instead, and can sys/mount.h
be updated to reflect the deprecation of these members?

If this isn't by design, is there a workaround I can use until this gets
fixed?  Thanks.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050312/9bd24083/attachment.bin


More information about the freebsd-current mailing list