21 Commits

Author SHA1 Message Date
trasz
cc83545ed3 MFC r277834:
When there are no automounted filesystems, autounmountd(8) should wait
for filesystem event, instead of looping on a timeout.

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:45:07 +00:00
trasz
9cde7d310d MFC r275756:
Fix bug that made automount(8) never unmount stale autofs(5) mounts,
ie mounts for entries that were there in auto_master(5), and then
got removed.

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:41:58 +00:00
trasz
b6b4fa466d MFC r275755:
Fix spurious "child process X terminated with exit status 1" messages
from automountd(8).

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:39:16 +00:00
trasz
1fbf58cee9 MFC r274859:
Implement "automount -c".

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:36:06 +00:00
trasz
97710cbe33 MFC r273127:
Make automountd(8) inform autofs(4) whether directory being handled can
have wildcards.  This makes it possible for autofs(4) to avoid requesting
automountd(8) action on access to nonexistent nodes - unless wildcards
are actually used.

Note that this change breaks ABI for automountd(8).

MFC r278521:

Restore ABI compatibility, broken in r273127.  Note that while this fixes
ABI with 10.1, it breaks ABI for 11-CURRENT, so rebuild of automountd(8)
is neccessary.

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:32:19 +00:00
trasz
9aa94c3abb MFC r275746:
Fix markup.

Sponsored by:	The FreeBSD Foundation
2015-01-26 13:17:20 +00:00
trasz
0ba11869de MFC r274796:
Document use of wildcards (*) and ampersands (&) in autofs map files.

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:15:35 +00:00
trasz
88d4dfb90e MFC r274723:
Make the auto_master(5) man page clearer on how auto_master
and map files work together, and add example for smbfs.

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:03:59 +00:00
trasz
a740f64591 MFC r274621:
The "intr" option is NFS-specific; fix examples in auto_master(5).

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:00:48 +00:00
trasz
131ee6d96e MFC r273160:
Fix automountd(8) not to leave zombies.

Sponsored by:	The FreeBSD Foundation
2014-11-15 05:53:45 +00:00
trasz
58ce7ca4f3 MFC r272717:
Remove call to access(2) which didn't serve any purpose, and make it more
tolerant to errors.

Sponsored by:	The FreeBSD Foundation
2014-11-14 10:56:33 +00:00
trasz
fd82234ffe MFC r273107:
Make automount(8)/automountd(8) treat percent sign as a valid part
of path.  It's useful for spaces encoded as %20 as msdosfs labels.

Submitted by:	glebius@
2014-11-14 10:53:55 +00:00
trasz
b4e4ada2c9 MFC r273123:
Silence down a warning that doesn't provide any useful information unless
debug is enabled.

Sponsored by:	The FreeBSD Foundation
2014-11-14 10:05:53 +00:00
trasz
ac1ecb285f MFC r272037:
Fix thinko that, with two map entries like shown below, in that order,
made automountd(8) mix them up: trying to access the second one would
trigger mount for the first one.

foo             host:/foo
foobar          host:/foobar

PR:		193584
Approved by:	re (gjb)
Sponsored by:	The FreeBSD Foundation
2014-09-25 17:38:42 +00:00
trasz
e073d019f5 MFC r271167:
Make it possible to quote names in autofs maps using double quotes.

Note that this is a workaround, not a proper solution.  If you know
lex well, and want to help - please let me know, I'll explain how it
should work.

PR:		192968
Approved by:	re (kib)
Sponsored by:	The FreeBSD Foundation
2014-09-17 08:25:48 +00:00
trasz
c9c191f6b0 MFC r270454:
Fix handling of keys in executable maps.  Previously it was broken for keys
containing whitespace.

PR:		192947
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:56:42 +00:00
trasz
7b5c207075 MFC r270406:
Add "nobrowse" option.  Previously automountd(8) always behaved as if
it was set, now it's conditional.

PR:		192862
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:55:08 +00:00
trasz
ea9facf035 MFC r270405:
Don't fail on executable maps that return no entries.  This turns useless
error message into useful one.

Sponsored by:	The FreeBSD Foundation
2014-08-31 21:53:42 +00:00
trasz
ab3fae8a9e MFC r270276:
Use __FBSDID() properly.

Suggested by:	pluknet@
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:48:12 +00:00
trasz
ee274d2353 MFC r270210:
Remove useless - and buggy, it resulted in spurious warnings in logs - code.

Sponsored by:	The FreeBSD Foundation
2014-08-31 21:46:32 +00:00
trasz
e8d76f86d2 MFC r270096:
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
Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:18:23 +00:00