public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] man/man2/mount.2: add ENOSPC
@ 2026-01-30  8:13 Chen Linxuan via B4 Relay
  2026-01-30 13:07 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Linxuan via B4 Relay @ 2026-01-30  8:13 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man, Chen Linxuan

From: Chen Linxuan <me@black-desk.cn>

After linux commit d29216842a85 ("mnt: Add a per mount namespace limit
on the number of mounts"), mount(2) might return ENOSPC.

---
Signed-off-by: Chen Linxuan <me@black-desk.cn>
---
 man/man2/mount.2 | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/man/man2/mount.2 b/man/man2/mount.2
index d5a68cb836b2..bebd3c1792ba 100644
--- a/man/man2/mount.2
+++ b/man/man2/mount.2
@@ -793,6 +793,19 @@ A pathname was empty or had a nonexistent component.
 .B ENOMEM
 The kernel could not allocate a free page to copy filenames or data into.
 .TP
+.B ENOSPC
+Number of mounts will exceed the limit after this syscall in some mount
+namespaces. This limit is controlled by
+.IR /proc/sys/fs/mount-max ,
+see
+.BR proc_sys_fs (5)
+for details of this limit.
+Note that this limit applies both to the mount namespace where the mount
+operation occurs and to any mount namespaces to which the mount will propagate.
+See
+.BR mount_namespaces (7)
+for details for mount namespace and mount propagation.
+.TP
 .B ENOTBLK
 .I source
 is not a block device (and a device was required).

---
base-commit: 6754bd1a126ed1e9b7d9c2bc1d221681f5182bb3
change-id: 20260130-add-enospc-for-mount-3ea1e87af6ee

Best regards,
-- 
Chen Linxuan <me@black-desk.cn>



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-30 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-30  8:13 [PATCH] man/man2/mount.2: add ENOSPC Chen Linxuan via B4 Relay
2026-01-30 13:07 ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox