Edward Tomasz Napierala
e3d5f1fe3b
Implement "automount -c".
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-11-22 16:48:29 +00:00
Edward Tomasz Napierala
5742494d29
Remove useless debug.
...
Sponsored by: The FreeBSD Foundation
2014-10-17 12:06:48 +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
3e4adf76c4
Add assertion to catch duplicated notes.
...
Sponsored by: The FreeBSD Foundation
2014-10-11 05:11:23 +00:00
Edward Tomasz Napierala
1609230854
Remove remnants of some cleanup; no functional changes.
...
Sponsored by: The FreeBSD Foundation
2014-10-09 18:49:58 +00:00
Edward Tomasz Napierala
5d28b9ed32
Simplify; no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-08 09:44:02 +00:00
Edward Tomasz Napierala
d19c297e5f
Make autofs use shared vnode locks.
...
Reviewed by: kib
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-04 09:37:40 +00:00
Edward Tomasz Napierala
baf9297e87
Fix autofs debug macros.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-03 10:18:22 +00:00
Edward Tomasz Napierala
2eaebf35d6
Make autofs(4) use shared lock for lookups, instead of exclusive one.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-03 09:58:05 +00:00
Edward Tomasz Napierala
28a23d3d82
Call uma_zfree() outside of lock, and improve comment.
...
Sponsored by: The FreeBSD Foundation
2014-10-02 10:37:56 +00:00
Edward Tomasz Napierala
759489f9e2
Make autofs timeout handling use timeout task instead of callout;
...
that's because the handler can sleep on sx lock.
Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
2014-10-02 10:31:32 +00:00
Edward Tomasz Napierala
5a66f6b3c4
Fix thinko that, with two map entries like shown below, in that order,
...
made autofs mix them up: the second one wasn't visible in ls(1) output,
and trying to access it would trigger mount for the first one.
foobar host:/foobar
foo host:/foo
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
2014-09-23 11:27:43 +00:00
Edward Tomasz Napierala
31a4b1aa03
Turns out -1 is a perfectly valid error number, ERESTART. Remove useless
...
code written under assumption that it wasn't.
Sponsored by: The FreeBSD Foundation
2014-09-21 10:34:15 +00:00
Edward Tomasz Napierala
787b524980
Fix typos.
...
Sponsored by: The FreeBSD Foundation
2014-09-18 10:33:23 +00:00
Edward Tomasz Napierala
7cb570d0ae
Fix bug that, assuming a/ is a root of NFS filesystem mounted on autofs,
...
prevented "mv a/from a/to" from working, while "cd a && mv from to" was ok.
PR: 192948
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-24 17:03:52 +00:00
Edward Tomasz Napierala
f81018caf2
Autofs softc needs to be global anyway, so don't pass it as a local
...
variable, and don't store in autofs_mount. Also rename it from 'sc'
to 'autofs_softc', since it's global and extern.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-23 11:45:14 +00:00
Edward Tomasz Napierala
a32ba4e63e
Add comment explaining one of the quirks in autofs.
...
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-23 11:38:31 +00:00
Edward Tomasz Napierala
f5440d1a9d
Fix includes.
...
Suggested by: pluknet@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-21 15:59:25 +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
2f438a99cd
Rework ".." lookup; previous one failed to properly busy the mountpoint.
...
Reviewed by: kib@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-20 13:46:51 +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