HomeFreeBSD

linux(4): Rework statfs conversion routine.

Description

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

Details

Provenance
dchaginAuthored on Jan 28 2023, 10:19 AM
Parents
rG4d77927e2af3: linuxkpi: Use a proper declaration for pm_suspend_via_firmware.
Branches
Unknown
Tags
Unknown