trasz
7d384a730d
Add -noauto autofs map, for automatic handling of fstab entries
...
marked "noauto".
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-13 12:44:46 +00:00
trasz
712aeceb14
Get executable direct maps to work.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-13 12:27:59 +00:00
trasz
29dcbee988
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
trasz
e2d017a584
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
trasz
e47fa13bc5
Make concat() accept NULL arguments.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-12 12:17:15 +00:00
trasz
724f53c3cf
Options from auto_master must be appended to options from maps,
...
not prepended.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-12 12:14:11 +00:00
trasz
bf5182c099
Fix typo.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 14:43:07 +00:00
trasz
09be0092bd
Properly pass options for direct maps.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 12:25:05 +00:00
trasz
6892ebe639
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
trasz
1970982572
Refactor.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 09:53:15 +00:00
trasz
69b4b7af49
Erm, revert chunk committed by mistake.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 15:44:36 +00:00
trasz
155cef1fdb
Make things more readable; no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 15:31:33 +00:00
trasz
9d17bb3d2b
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
trasz
558260a403
Fix memory leak.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 13:21:00 +00:00
trasz
622e1a5d99
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
trasz
8822ff21ce
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
trasz
b7bb1dabe4
When there are no automounted filesystems, autounmountd(8) should wait
...
for filesystem event, instead of looping on a timeout.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-01-28 15:46:11 +00:00
trasz
e237531c72
Improve documentation for autofs variables and executable maps;
...
also some markup fixes.
Differential Revision: https://reviews.freebsd.org/D1447
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-01-09 10:59:49 +00:00
trasz
cb41c48320
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
trasz
1660bc111a
Fix spurious "child process X terminated with exit status 1" messages
...
from automountd(8).
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-12-14 10:37:17 +00:00
trasz
f60a4eae82
Fix markup.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-12-13 17:14:35 +00:00
trasz
5a2f0c0e00
Add "-media" autofs map, to access data on removable media, such as CD
...
drives or flash keys. It can be enabled by uncommenting a single entry
in default /etc/auto_master. It can also be easily modified to use
fuse-based filesystems instead of in-kernel ones.
There is still one deficiency - the mountpoints are permanent, they
don't disappear when user removes the media. Fixing it needs some
autofs changes.
Differential Revision: https://reviews.freebsd.org/D1210
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-12-10 14:36:44 +00:00
bapt
a191ba5195
Convert usr.sbin to LIBADD
...
Reduce overlinking
2014-11-25 16:57:27 +00:00
trasz
4afc5ee040
Implement "automount -c".
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-11-22 16:48:29 +00:00
trasz
706c90c174
Document use of wildcards (*) and ampersands (&) in autofs map files.
...
Differential Revision: https://reviews.freebsd.org/D1199
Reviewed by: wblock@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-11-21 15:49:41 +00:00
trasz
b7c06fbbb5
Make the auto_master(5) man page clearer on how auto_master
...
and map files work together, and add example for smbfs.
Differential Revision: https://reviews.freebsd.org/D1184
Reviewed by: wblock@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-11-19 19:46:58 +00:00
trasz
e5d03fbe91
The "intr" option is NFS-specific; fix examples in auto_master(5).
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-11-17 12:36:01 +00:00
trasz
8859689d4d
Fix automountd(8) not to leave zombies.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-16 08:33:04 +00:00
trasz
1687a6636a
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
trasz
ab90eaca23
Silence down a warning that doesn't provide any useful information unless
...
debug is enabled.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-15 07:09:45 +00:00
trasz
11a43062e8
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@
MFC after: 1 month
2014-10-14 19:55:34 +00:00
trasz
4c1564fe91
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
trasz
3253f3d751
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
trasz
4821016c8a
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
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
2014-09-05 14:32:09 +00:00
trasz
fc2af22220
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
trasz
19be009a4f
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
trasz
70e59e5f25
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
trasz
a07b17da6a
Use __FBSDID() properly.
...
Suggested by: pluknet@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-21 15:07:25 +00:00
trasz
944a288c8a
Remove useless - and buggy, it resulted in spurious warnings in logs - code.
...
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-20 13:54:27 +00:00
trasz
cac9beab7d
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