[Bug 218336] mount(2) doesn't document ENOSPC when /proc/sys/fs/mount-max is exceeded

bugzilla-daemon
2024-01-03T16:04:09Z

--- Comment #1 from Simon McVittie (smcv@collabora.com) ---
The bubblewrap PR is https://github.com/containers/bubblewrap/pull/615.

The text I would hope to see in the man page could perhaps be something like:

**ENOSPC**
The mount operation would cause the current mount namespace to
have more mount points than allowed by _/proc/sys/fs/mount-max_.

...

**SEE ALSO**
...,
https://www.kernel.org/doc/html/latest/admin-guide/sysctl/fs.html#mount-max

Or if the man-pages maintainers would prefer to have text that anticipates
potential future kernel changes, perhaps more generally:

**ENOSPC**
The mount operation would cause a resource limit to be exceeded,
for example more mount points than allowed by _/proc/sys/fs/mount-max_
in the current mount namespace.