Bug 291301 - statfs() no longer reporting statfs.f_fsid in jails
Summary: statfs() no longer reporting statfs.f_fsid in jails
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: 14.3-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-standards (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-30 14:29 UTC by vedad
Modified: 2025-11-30 14:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vedad 2025-11-30 14:29:41 UTC
As of FreeBSD 14.3, the statfs() call in jails seems to always return empty (zeroed) statfs.f_fsid, specifically for zfs datasets managed (created and mounted) by the jail.

This used to work fine (ie. an actual value was returned in `statfs.f_fsid`) in FreeBSD 14.2 jails with enforce_statfs=1.

I have tested on FreeBSD 14.3 with both enforce_statfs=1 and enforce_statfs=0, and the returned value is always zeroed.

This is quite annoying for software that needs to gather available/used disk space among available mountpoints.