freebsd-dev/sys/compat
Dmitry Chagin 953688e823 linux(4): Rework statfs conversion routine.
Rework the routines to convert a native statfs structure (with fixed-size 64-bit
counters) to a Linux statfs structure (with long-sized counters) for 32-bit apps.

Instead of following Linux and return an EOVERFLOW error from statfs() family of
syscalls when actual fs stat value(s) are large enough to not fit into 32 bits,
apply scale logics used by FreeBSD to convert a 5.x statfs structure to a 4.x
statfs structure.

For more details see cc479dda.

Tested by:		glebius
MFC after:		1 week
2023-01-28 13:19:41 +03:00
..
freebsd32 ptrace(2): add PT_SC_REMOTE remote syscall request 2022-12-22 23:11:35 +02:00
ia32 Retire sv_transtrap 2022-05-20 14:54:03 +03:00
lindebugfs lindebugfs: Add debugfs_create_file_size() 2023-01-25 23:23:16 +01:00
linprocfs linprocfs: Add net/route. 2022-10-22 13:52:58 +03:00
linsysfs linsysfs: plug set-but-not-used vars. 2022-03-31 23:49:26 +03:00
linux linux(4): Rework statfs conversion routine. 2023-01-28 13:19:41 +03:00
linuxkpi linuxkpi: Use a proper declaration for pm_suspend_via_firmware. 2023-01-27 19:41:35 -08:00
x86bios pmap_unmapdev/bios: Accept a pointer instead of a vm_offset_t. 2022-09-22 15:08:52 -07:00