aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/autofs
Commit message (Collapse)AuthorAgeFilesLines
* Add the "autoro" flag to /media. This makes it attempt to mountEdward Tomasz Napierala2018-08-141-1/+1
| | | | | | | | | | | | | it read-only instead of just failing if the media is write-protected. The /net doesn't seem to require the flag. MFC after: 2 weeks Relnotes: yes Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=337749
* Move autofs related configs to usr.sbin/autofs/Brad Davis2018-08-0410-0/+462
| | | | | | | | | | This is prep for pkgbase to have config files tagged as such. Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16492 Notes: svn path=/head/; revision=337340
* Add SPDX tags for automount(8) et al.Edward Tomasz Napierala2018-01-249-0/+18
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=328338
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Fix mdoc typo in auto_master.5Benjamin Kaduk2017-09-011-1/+1
| | | | | | | | | | | There needs to be a space after the no-space macro in order for it to be interpreted. PR: 221986 Submitted by: Paul Townsend <pt@zendware.com> Notes: svn path=/head/; revision=323122
* Revert r317804; apparently I forgot the auto_master syntax.Edward Tomasz Napierala2017-05-041-5/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=317805
* Make automount(8) error out when the map name is missing.Edward Tomasz Napierala2017-05-041-0/+5
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=317804
* usr.sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-2/+2
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314659
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Make autounmountd(8) not die when traced with "truss -p".Edward Tomasz Napierala2016-11-021-1/+4
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=308206
* Use proper argument order for calloc(3).Edward Tomasz Napierala2016-09-143-3/+3
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=305805
* Remove usage of _WITH_GETLINE from usr.sbinBaptiste Daroussin2016-07-301-1/+0
| | | | Notes: svn path=/head/; revision=303527
* Add new unmount(2) flag, MNT_NONBUSY, to check whether there areEdward Tomasz Napierala2016-07-071-1/+1
| | | | | | | | | | | | | | any open vnodes before proceeding. Make autounmound(8) use this flag. Without it, even an unsuccessfull unmount causes filesystem flush, which interferes with normal operation. Reviewed by: kib@ Approved by: re (gjb@) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D7047 Notes: svn path=/head/; revision=302388
* MFHGlen Barber2016-04-041-6/+9
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297567
| * Use the log_errno value passed to the function instead of the errno globalEdward Tomasz Napierala2016-03-151-6/+9
| | | | | | | | | | | | | | | | | | | | | | variable. Suggested by: Daniel Braniss MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=296897
* | MFHGlen Barber2016-03-022-3/+1
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318
| * Autofs is section 5, not 4.Edward Tomasz Napierala2016-02-291-1/+1
| | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=296197
| * DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-2/+0
| | | | | | | | | | | | | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* | Create a package for autofs(5)Glen Barber2016-02-021-0/+1
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295156
* The <libutil.h> is an ordinary header file; should sort just like any other.Edward Tomasz Napierala2016-01-245-9/+5
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=294670
* META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery2015-12-011-0/+21
| | | | | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291563
* Add -noauto autofs map, for automatic handling of fstab entriesEdward Tomasz Napierala2015-03-131-1/+6
| | | | | | | | | | marked "noauto". MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279955
* Get executable direct maps to work.Edward Tomasz Napierala2015-03-131-10/+23
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279954
* Rework the concat() algorithm to be correct in all cases.Edward Tomasz Napierala2015-03-131-7/+16
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279953
* Make "automount -LL -o whatever" present options in the same orderEdward Tomasz Napierala2015-03-123-9/+16
| | | | | | | | | | as used by automountd(8). MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279916
* Make concat() accept NULL arguments.Edward Tomasz Napierala2015-03-123-17/+8
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279915
* Options from auto_master must be appended to options from maps,Edward Tomasz Napierala2015-03-121-1/+5
| | | | | | | | | | not prepended. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279914
* Fix typo.Edward Tomasz Napierala2015-03-101-2/+2
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279851
* Properly pass options for direct maps.Edward Tomasz Napierala2015-03-102-27/+18
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279846
* Fix handling of direct maps, broken in r275756. Previously, runningEdward Tomasz Napierala2015-03-101-17/+25
| | | | | | | | | | automount(8) would unmount direct map trigger nodes every second time. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279845
* Refactor.Edward Tomasz Napierala2015-03-101-9/+14
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279843
* Erm, revert chunk committed by mistake.Edward Tomasz Napierala2015-03-091-5/+0
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279815
* Make things more readable; no functional changes.Edward Tomasz Napierala2015-03-095-22/+16
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279813
* Remove some particularly bad code; no functional changes.Edward Tomasz Napierala2015-03-092-43/+11
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279812
* Fix memory leak.Edward Tomasz Napierala2015-03-091-2/+4
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279808
* Improve separated_concat() to properly handle the case of concatenatingEdward Tomasz Napierala2015-03-091-2/+8
| | | | | | | | | | "/" and "/foo". MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279807
* Minor optimization/cleanup in node_path(); no functional changes.Edward Tomasz Napierala2015-03-091-10/+12
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279806
* When there are no automounted filesystems, autounmountd(8) should waitEdward Tomasz Napierala2015-01-281-13/+23
| | | | | | | | | | for filesystem event, instead of looping on a timeout. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=277834
* Improve documentation for autofs variables and executable maps;Edward Tomasz Napierala2015-01-091-3/+58
| | | | | | | | | | | also some markup fixes. Differential Revision: https://reviews.freebsd.org/D1447 MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=276883
* Fix bug that made automount(8) never unmount stale autofs(5) mounts,Edward Tomasz Napierala2014-12-141-3/+14
| | | | | | | | | | | ie mounts for entries that were there in auto_master(5), and then got removed. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=275756
* Fix spurious "child process X terminated with exit status 1" messagesEdward Tomasz Napierala2014-12-141-7/+1
| | | | | | | | | | from automountd(8). MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=275755
* Fix markup.Edward Tomasz Napierala2014-12-131-3/+3
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=275746
* Add "-media" autofs map, to access data on removable media, such as CDEdward Tomasz Napierala2014-12-101-6/+9
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=275681
* Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* Implement "automount -c".Edward Tomasz Napierala2014-11-222-4/+67
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=274859
* Document use of wildcards (*) and ampersands (&) in autofs map files.Edward Tomasz Napierala2014-11-211-3/+20
| | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D1199 Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=274796
* Make the auto_master(5) man page clearer on how auto_masterEdward Tomasz Napierala2014-11-191-5/+23
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=274723
* The "intr" option is NFS-specific; fix examples in auto_master(5).Edward Tomasz Napierala2014-11-171-3/+3
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=274621
* Fix automountd(8) not to leave zombies.Edward Tomasz Napierala2014-10-161-0/+29
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273160
* Make automountd(8) inform autofs(4) whether directory being handled canEdward Tomasz Napierala2014-10-153-10/+54
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=273127