diff options
author | John Baldwin <jhb@FreeBSD.org> | 2007-08-28 20:28:12 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2007-08-28 20:28:12 +0000 |
commit | cc479dda4a663966637549f429020e002458ef3d (patch) | |
tree | 6c90a59f892dc8f1d97e9a4c9dbc5d141cf5adfa /contrib/diff/NEWS | |
parent | 0e6ed4feab627360a69a484a8c077b6296a59703 (diff) |
Rework the routines to convert a 5.x+ statfs structure (with fixed-size
64-bit counters) to a 4.x statfs structure (with long-sized counters).
- For block counters, we scale up the block size sufficiently large so
that the resulting block counts fit into a the long-sized (long for the
ABI, so 32-bit in freebsd32) counters. In 4.x the NFS client's statfs
VOP did this already. This can lie about the block size to 4.x binaries,
but it presents a more accurate picture of the ratios of free and
available space.
- For non-block counters, fix the freebsd32 stats converter to cap the
values at INT32_MAX rather than losing the upper 32-bits to match the
behavior of the 4.x statfs conversion routine in vfs_syscalls.c
Approved by: re (kensmith)
Notes
Notes:
svn path=/head/; revision=172003
Diffstat (limited to 'contrib/diff/NEWS')
0 files changed, 0 insertions, 0 deletions