summaryrefslogtreecommitdiffstats
path: root/sbin/mount
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Fix type mismatches for malloc(3) and Co.uqs2015-12-291-1/+1
| | | | | | Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722
* Fix "mount -a" for NFS and ZFS filesystems with shared mountpointsasomers2015-12-211-1/+9
| | | | | | | | | | | | | | | | | sbin/mount.c Check whether an fstab entry has the same fstype as a mounted filesystem before declaring it to be mounted. This will allow NFS filesystems that share a mountpoint with a local filesystem to be automatically mounted at boot. This is not such an unusual situation. For example, if somebody uses the standard installer with a ZFS root, he'll get a /usr/home filesystem, even though he may choose to mount /usr/home over NFS. Reviewed by: trasz MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4556
* Replace /dev/acd0 with /dev/cd1ngie2015-10-171-3/+3
| | | | | | | | | | atapicd(4) has been removed since r249083, and if a system has more than one optical drive, it will likely be /dev/cd1 Update mount.conf(8) to reflect the change in behavior MFC after: never Sponsored by: EMC / Isilon Storage Division
* Replace references to /dev/acd0 with /dev/cd0ngie2015-10-131-2/+2
| | | | | | | | atapicd(4) was replaced by cd(4) with the atacam work done by mav@ and then removed in r249083 X-MFC to: stable/10 MFC after: 2 weeks
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-273-6/+6
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-193-3/+12
| |\
| * \ Merge head from 7/28sjg2014-08-191-2/+2
| |\ \
| * | | Updated dependenciessjg2014-05-161-1/+0
| | | |
| * | | Updated dependenciessjg2014-05-101-0/+2
| | | |
| * | | Merge from headsjg2013-09-054-10/+279
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| | | | |
| | \ \ \
| *-. \ \ \ Sync from headsjg2012-11-043-14/+12
| |\ \ \ \ \
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |/ / / / | |/| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Remove some oldnfs remnants.trasz2015-04-182-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2287 Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation
* | | | | | mdoc: improvements to SEE ALSO.joel2014-12-271-1/+1
| | | | | |
* | | | | | Add fstyp(8). This utility, named after its SVR4 counterpart, detectstrasz2014-12-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystems. It differs from file(1) in that it gives machine-parseable output, it outputs filesystem labels, doesn't get confused by other formats metadata, and runs in Capsicum sandbox. Differential Revision: https://reviews.freebsd.org/D1255 Relnotes: yes Sponsored by: The FreeBSD Foundation
* | | | | | Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking
* | | | | | Cross-reference automount(8) from mount(8).trasz2014-11-221-1/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | Add description for the "automounted" mount flag.trasz2014-08-201-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: emaste@ MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* | | | | Bring in the new automounter, similar to what's provided in most othertrasz2014-08-172-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Mention tmpfs(5)skreuzer2014-08-061-0/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | PR: 192389 Submitted by: yaneurabeya@gmail.com Approved by: hrs (mentor)
* | | | use .Mt to mark up email addresses consistently (part1)bapt2014-06-201-2/+2
| |_|/ |/| | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | Minor mdoc fixes.joel2013-07-181-10/+10
| | |
* | | In this GRN, Marcel Moolenaar overhauled the logic for mountingrodrigc2013-07-172-1/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the root file system on bootup: |------------------------------------------------------------------------ |r214006 | marcel | 2010-10-17 22:01:53 -0700 (Sun, 17 Oct 2010) | 20 lines | | Re-implement the root mount logic using a recursive approach, whereby each |root file system (starting with devfs and a synthesized configuration) can |contain directives for mounting another file system as root. |------------------------------------------------------------------------ This commit adds a mount.conf(8) man page which documents the root mount logic. mount.conf(8) also provides some examples for the /.mount.conf file, which can be used to change the root mount behavior. Reviewed by: marcel bjk
* | | Add -n flag for compatibility with Linux version of mount(8).rmh2013-07-152-1/+7
| | | | | | | | | | | | Reviewed by: freebsd-fs, eadler, mckusick, jh, wblock
* | | - Trim an unused and bogus Makefile for mount_smbfs.davide2013-06-282-1/+3
| | | | | | | | | | | | | | | | | | - Reconnect with some minor modifications, in particular now selsocket() internals are adapted to use sbintime units after recent'ish calloutng switch.
* | | Revert r238399.jh2013-06-071-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "failok" option doesn't have any effect at all unless specified in fstab(5) and combined with the -a flag. The "failok" option is already documented in fstab(5). PR: 177630 No objection: eadler MFC after: 1 week
* | | Introduce and use new flag -L to mount for mounting only late filesystems.crees2013-05-042-2/+16
| |/ |/| | | | | | | | | | | | | | | | | Previously, rc.d/mountlate mounted *all* filesystems, causing problems with background NFS mounts being mounted twice. PR: conf/137629 Submitted by: eadler (original concept) Reviewed by: mjg Approved by: hrs
* | Disconnect non-MPSAFE SMBFS from the build in preparation for droppingattilio2012-10-182-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | GIANT from VFS. In addition, disconnect also netsmb, which is a base requirement for SMBFS. In the while SMBFS regular users can use FUSE interface and smbnetfs port to work with their SMBFS partitions. Also, there are ongoing efforts by vendor to support in-kernel smbfs, so there are good chances that it will get relinked once properly locked. This is not targeted for MFC.
* | Disconnect non-MPSAFE NTFS from the build in preparation for droppingattilio2012-10-172-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | GIANT from VFS. This code is particulary broken and fragile and other in-kernel implementations around, found in other operating systems, don't really seem clean and solid enough to be imported at all. If someone wants to reconsider in-kernel NTFS implementation for inclusion again, a fair effort for completely fixing and cleaning it up is expected. In the while NTFS regular users can use FUSE interface and ntfs-3g port to work with their NTFS partitions. This is not targeted for MFC.
* | Disconnect non-MPSAFE NWFS from the build in preparation for droppingattilio2012-10-172-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | GIANT from VFS. In addition, disconnect also netncp, which is a base requirement for NWFS. In the possibility of a future maintenance of the code and later readd to the FreeBSD base, maybe we should think about a better location for netncp. I'm not entirely sure the / top location is actually right, however I will let network people to comment on that more specifically. This is not targeted for MFC.
* | Disconnect non-MPSAFE PORTALFS from the build in preparation for droppingattilio2012-10-162-3/+1
| | | | | | | | | | | | GIANT from VFS. This is not targeted for MFC.
* | Fix minor nits:eadler2012-10-152-3/+4
| | | | | | | | | | | | | | | | | | | | use a comma after "i.e." sentences begin on new lines. No .Dd bump for trivial modification. Approved by: wblock MFC after: 3 days
* | Document the behavior of mount with failok specified.eadler2012-07-121-1/+6
|/ | | | | | | | | PR: docs/163742 Submitted by: gcooper Discussion by: gcooper Discussion by: bjk Approved by: gabor MFC after: 3 days
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-241-1/+1
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* Don't print the nmount(2) provided error message if it is empty.jh2012-01-201-1/+4
|
* Change mount_fs() to not exit on error. The "failok" mount optionjh2012-01-201-6/+5
| | | | | | | requires that errors are passed to the caller. PR: 163668 Reviewed by: Garrett Cooper
* - Clean up checkpath().jh2012-01-201-8/+5
| | | | | | | | - Remove unneeded sysexits.h include. No functional change. Submitted by: bde
* Change checkpath() to not exit on error. This is a prerequisite forjh2012-01-164-7/+17
| | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version)
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-042-2/+2
| | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
* Clear the mountprog variable after each mountfs() call so that mountprogjhb2011-09-021-0/+5
| | | | | | | | | options don't leak over into subsequent mounts listed in /etc/fstab. While here, fix a memory leak in debug mode. Reported by: rank1seeker @ gmail Approved by: re (kib) MFC after: 1 week
* Update to -r224294 to ensure that only one of MNT_SUJ or MNT_SOFTDEPmckusick2011-07-301-2/+2
| | | | | | | is set so that mount can revert back to using MNT_NOWAIT when doing getmntinfo. Approved by: re (kib)
* Move the MNTK_SUJ flag in mnt_kern_flag to MNT_SUJ in mnt_flagmckusick2011-07-241-2/+3
| | | | | | | | | so that it is visible to userland programs. This change enables the `mount' command with no arguments to be able to show if a filesystem is mounted using journaled soft updates as opposed to just normal soft updates. Approved by: re (bz)
* Add a special mount option "failok" to indicate that the administrator wantsdelphij2011-06-071-2/+14
| | | | | | | | | the system to proceed to boot without bailing out into single user mode, even when the file system can not be successfully mounted. This option is implemented in mount(8) and not passed into kernel. MFC after: 1 month
* Add another example to mount(8) on using the "-o" argument.gavin2011-06-061-2/+11
| | | | | | PR: docs/157389 Submitted by: Warren Block <wblock wonkity.com> MFC after: 1 week
* Another man page update related to the switchover of thermacklem2011-04-291-2/+2
| | | | | | | NFS clients done by r221124. This is a content change. Submitted by: jh
OpenPOWER on IntegriCloud