History log of /freebsd-current/usr.sbin/autofs/automount.c
Revision Date Author Comments
# 4d65a7c6 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.sbin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 56c44bd9 29-Sep-2023 Konstantin Belousov <kib@FreeBSD.org>

automount(8): when flushing autofs, specify fsid

Which should avoid situation where flushed filesystem is not autofs,
because it was mounted over autofs mp.

Reported and tested by: Andrew "RhodiumToad" Gierth <andrew@tao11.riddles.org.uk>
PR: 272446
Reviewed by: mjg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42023


# 21b8e363 10-Jul-2023 Andrew Gierth <andrew@tao146.riddles.org.uk>

automount: check for mounted-over autofs instances on flush

PR: 272446
Reviewed by: kib
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D40961


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 88e531f3 17-Feb-2021 Robert Wing <rew@FreeBSD.org>

autofs: best effort to maintain mounttab and mountdtab

When an automounted filesystem is successfully unmounted, call
rpc.umntall(8) with the -k flag.

rpc.umntall(8) is used to clean up /var/db/mounttab on the client and
/var/db/mountdtab on the server. This is only useful for NFSv3.

PR: 251906
Reviewed by: trasz
Differential Revision: https://reviews.freebsd.org/D27801


# bce7ee9d 28-Oct-2020 Edward Tomasz Napierala <trasz@FreeBSD.org>

Drop "All rights reserved" from all my stuff. This includes
Foundation copyrights, approved by emaste@. It does not include
files which carry other people's copyrights; if you're one
of those people, feel free to make similar change.

Reviewed by: emaste, imp, gbe (manpages)
Differential Revision: https://reviews.freebsd.org/D26980


# abdd3945 24-Jan-2018 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add SPDX tags for automount(8) et al.

MFC after: 2 weeks


# 592d6e85 24-Jan-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

The <libutil.h> is an ordinary header file; should sort just like any other.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 8ee4f5ef 11-Mar-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make "automount -LL -o whatever" present options in the same order
as used by automountd(8).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 4d58da13 11-Mar-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make concat() accept NULL arguments.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 61d75c32 09-Mar-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Properly pass options for direct maps.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 6d8e60c3 09-Mar-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make things more readable; no functional changes.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# e3d5f1fe 22-Nov-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Implement "automount -c".

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 925fd945 21-Aug-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Use __FBSDID() properly.

Suggested by: pluknet@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation


# 3914ddf8 17-Aug-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Bring in the new automounter, similar to what's provided in most other
UNIX systems, eg. MacOS X and Solaris. It uses Sun-compatible map format,
has proper kernel support, and LDAP integration.

There are still a few outstanding problems; they will be fixed shortly.

Reviewed by: allanjude@, emaste@, kib@, wblock@ (earlier versions)
Phabric: D523
MFC after: 2 weeks
Relnotes: yes
Sponsored by: The FreeBSD Foundation