summaryrefslogtreecommitdiffstats
path: root/sbin/mount
Commit message (Collapse)AuthorAgeFilesLines
* MFC r275680:trasz2015-01-201-1/+2
| | | | | | | | | | | Add fstyp(8). This utility, named after its SVR4 counterpart, detects 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
* MFC r274857:trasz2015-01-011-1/+2
| | | | | | Cross-reference automount(8) from mount(8). Sponsored by: The FreeBSD Foundation
* MFC r269627:skreuzer2014-10-141-0/+1
| | | | | | | | Mention tmpfs(5) PR: 192389 Submitted by: yaneurabeya@gmail.com Approved by: hrs (mentor)
* MFC r270209:trasz2014-08-311-1/+6
| | | | | | | Add description for the "automounted" mount flag. Reviewed by: emaste@ Sponsored by: The FreeBSD Foundation
* MFC r270096:trasz2014-08-312-2/+5
| | | | | | | | | | | | | 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 Relnotes: yes Sponsored by: The FreeBSD Foundation
* 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
* This patch changes head so that the default NFS client is now the newrmacklem2011-04-271-2/+2
| | | | | | | | | | | | | | NFS client (which I guess is no longer experimental). The fstype "newnfs" is now "nfs" and the regular/old NFS client is now fstype "oldnfs". Although mounts via fstype "nfs" will usually work without userland changes, an updated mount_nfs(8) binary is needed for kernels built with "options NFSCL" but not "options NFSCLIENT". Updated mount_nfs(8) and mount(8) binaries are needed to do mounts for fstype "oldnfs". The GENERIC kernel configs have been changed to use options NFSCL and NFSD (the new client and server) instead of NFSCLIENT and NFSSERVER. For kernels being used on diskless NFS root systems, "options NFSCL" must be in the kernel config. Discussed on freebsd-fs@.
* Revert r217871.dougb2011-02-251-6/+2
|
* Clarify the availability of the noatime option on network file systemsdougb2011-01-261-2/+6
|
* Remove the advertising clause from UCB copyrighted files in sbin. Thisjoel2010-12-121-4/+0
| | | | | is in accordance with the information at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
* Delete /sys/ufs/ffs/README.snapshot as it is no longer relevant.mckusick2010-11-201-3/+0
| | | | | | Drop reference to it in mount(8). MFC: 3 days
* Fix printing of the "rw" mount option in fstab(5) format (-p option).jh2010-09-301-12/+12
| | | | | | | | | fstab(5) format requires that one of "rw", "rq" or "ro" is always specified. PR: bin/123021 Reviewed by: keramida, rodrigc MFC after: 2 weeks
* Clarify devfs manpages slightly.jilles2010-05-291-0/+1
| | | | | | | | | | mount(8): add xref to devfs(5) devfs(5): change example to something more likely to be useful (it is not necessary to mount a devfs on /dev manually, but for chroots/jails it is often needed), mention since when devfs is preferred to device nodes on ufs PR: 146600 MFC after: 2 weeks
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-131-5/+5
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* As statfs.f_flags are uint64_t the local variables should be as well.bz2010-03-071-3/+3
| | | | | | | | | | | | | | We'll start noticing this with the next flag introduced as the lower 32bit are all used. As this is old code we might need to do a full tree sweep one day, unless changing our strategy to use a different `API' for getting/setting flags along with the rest of the statfs data. While here compare to 0 explicitly [1]. Suggested by: kib [1] Reviewed by: kib MFC after: 5 days
* - Remove reference to nfs4. mount_nfs4(8) was removed in r192578.jh2010-02-101-2/+2
| | | | - Add newnfs.
* ANSIfy almost all applications that use WARNS=6.ed2009-12-291-5/+2
| | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
* Implement NFSv4 ACL support for UFS.trasz2009-12-213-2/+18
| | | | Reviewed by: rwatson
* Add links to zfs(8) and zpool(8) to mount(8) manual page.trasz2009-11-111-1/+3
|
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-1/+0
| | | | Submitted by: Ulrich Spörlein
* Modify mount(8) to skip MNT_IGNORE file systems by default, just like df(1)pjd2009-09-142-0/+9
| | | | | | | | | does. This is not POLA violation, because there is no single file system in the base that use MNT_IGNORE currently, although ZFS snapshots will be mounted with MNT_IGNORE after next commit. Reviewed by: kib MFC after: 3 days
* Add support for the experimental nfs client to mount_nfs. Thermacklem2009-05-271-1/+1
| | | | | | | | | | | | experimental client is used when the fstype is "newnfs" or the "nfsv4" option is specified. It includes the addition of the option: gssname - to specify a client side initiator host based principal name which is specific to NFSv4. It also includes a change to mount.c, so that it knows about mount_newnfs, but not mount_nfs4. Reviewed by: dfr Approved by: kib (mentor)
* Add a -o mountprog parameter to mount which explicitly allowsrodrigc2009-03-052-4/+39
| | | | | | | | | | | | | | | | | | | an alternative program to be used for mounting a file system. Ideally, all file systems should be converted to pass string arguments to nmount(), so that /sbin/mount can handle them. However, certain file systems such as FUSE have not done this, and want to have their own userland mount programs. For example, to mount an NTFS file system with the FUSE NTFS driver: mount -t ntfs -o mountprog=/usr/local/bin/ntfs-3g /dev/acd0 /mnt or via an fstab entry: /dev/acd0 /mnt ntfs ro,noauto,mountprog=/usr/local/bin/ntfs-3g 0 0 PR: 120784 Requested by: Dominic Fandrey
* r187093 failed to keep the lifetime of the pointer suitable for reentrancy.obrien2009-01-131-11/+5
| | | | Fix that. Also move the current buffer size into the 'cpa' structure.
* Use a dynamically grown buffer for building the argv for the sub-mounts.obrien2009-01-121-11/+16
| | | | | | Also fix RCSid spamage. Inspired by patch from: Christoph Mallon <christoph.mallon@gmx.de>
* Explicitly check each mount argv building assignment for buffer over flowing.obrien2009-01-101-28/+34
| | | | Reviewed by: imp (earlier version of patch)
* style(9)obrien2008-12-262-6/+6
|
OpenPOWER on IntegriCloud