From fa6e1e925e00372022d3a2cdc06a9f4c1da1b822 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Thu, 4 Jun 2020 02:20:05 +0900 Subject: [PATCH] autofs: Sync autofs(5) with FreeBSD from freebsd/freebsd@215ce0ad1ae5c6fa927904738502bfe39bf56ac2 Minimize diff vs FreeBSD. vfs.autofs.mount_on_stat (automount on vop_getattr) is unsupported. --- share/man/man5/autofs.5 | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/share/man/man5/autofs.5 b/share/man/man5/autofs.5 index e977f71857..0a9b907679 100644 --- a/share/man/man5/autofs.5 +++ b/share/man/man5/autofs.5 @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 14, 2016 +.Dd June 4, 2020 .Dt AUTOFS 5 .Os .Sh NAME @@ -69,6 +69,45 @@ Mount options for all filesystems specified in the map entry. .It Cm master_prefix Filesystem mountpoint prefix. .El +.Sh SYSCTL VARIABLES +The following variables are available as both +.Xr sysctl 8 +variables and +.Xr loader 8 +tunables: +.Bl -tag -width indent +.It Va vfs.autofs.debug +Verbosity level for log messages from the +.Nm +driver. +Set to 0 to disable logging or 1 to warn about potential problems. +Larger values enable debugging output. +Defaults to 1. +.It Va vfs.autofs.interruptible +Set to 1 to allow mount requests to be interrupted by signal. +Defaults to 1. +.It Va vfs.autofs.retry_delay +Number of seconds before retrying mount requests. +Defaults to 1. +.It Va vfs.autofs.retry_attempts +Number of attempts before failing mount. +Defaults to 3. +.It Va vfs.autofs.cache +Number of seconds to wait before reinvoking +.Xr automountd 8 +for any given file or directory. +Defaults to 600. +.It Va vfs.autofs.timeout +Number of seconds to wait for +.Xr automountd 8 +to handle the mount request. +Defaults to 30. +.\".It Va vfs.autofs.mount_on_stat +.\"Set to 1 to trigger mount on +.\".Xr stat 2 +.\"on mountpoint. +.\"Defaults to 0. +.El .Sh EXAMPLES To unmount all mounted .Nm -- 2.28.0