Edward Tomasz Napierala
592d6e850a
The <libutil.h> is an ordinary header file; should sort just like any other.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-01-24 18:11:36 +00:00
Edward Tomasz Napierala
cd3772d076
Rework the concat() algorithm to be correct in all cases.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-13 11:26:02 +00:00
Edward Tomasz Napierala
8ee4f5ef45
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
2015-03-12 12:36:08 +00:00
Edward Tomasz Napierala
4d58da13af
Make concat() accept NULL arguments.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-12 12:17:15 +00:00
Edward Tomasz Napierala
12f1f00c30
Fix handling of direct maps, broken in r275756. Previously, running
...
automount(8) would unmount direct map trigger nodes every second time.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 11:59:33 +00:00
Edward Tomasz Napierala
7a20e4799e
Refactor.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 09:53:15 +00:00
Edward Tomasz Napierala
6d8e60c342
Make things more readable; no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 15:31:33 +00:00
Edward Tomasz Napierala
ef4b8dfad7
Remove some particularly bad code; no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 15:20:12 +00:00
Edward Tomasz Napierala
8f0eba6738
Fix memory leak.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 13:21:00 +00:00
Edward Tomasz Napierala
5585582d14
Improve separated_concat() to properly handle the case of concatenating
...
"/" and "/foo".
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 13:00:59 +00:00
Edward Tomasz Napierala
1bc6f46438
Minor optimization/cleanup in node_path(); no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 11:59:58 +00:00
Edward Tomasz Napierala
cc4026a45c
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.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-12-14 10:49:22 +00:00
Edward Tomasz Napierala
4cdc52bdef
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).
Tested by: dhw@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-15 09:28:45 +00:00
Edward Tomasz Napierala
7ebeea9aa6
Remove call to access(2) which didn't serve any purpose, and make it more
...
tolerant to errors.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-07 19:08:02 +00:00
Edward Tomasz Napierala
c37463b3e8
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
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
2014-09-23 19:12:06 +00:00
Edward Tomasz Napierala
3dd80c05b1
Fix handling of keys in executable maps. Previously it was broken for keys
...
containing whitespace.
PR: 192947
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-24 12:32:26 +00:00
Edward Tomasz Napierala
f7ae83075a
Add "nobrowse" option. Previously automountd(8) always behaved as if
...
it was set, now it's conditional.
PR: 192862
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-23 12:00:45 +00:00
Edward Tomasz Napierala
30ae6e0076
Don't fail on executable maps that return no entries. This turns useless
...
error message into useful one.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-23 11:51:46 +00:00
Edward Tomasz Napierala
925fd94584
Use __FBSDID() properly.
...
Suggested by: pluknet@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-21 15:07:25 +00:00
Edward Tomasz Napierala
3914ddf8a7
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
2014-08-17 09:44:42 +00:00