aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mntopts.h
Commit message (Collapse)AuthorAgeFilesLines
* Add two options to allow mount to avoid covering up existing mount points.Sean Eric Fagan2019-09-231-2/+5
| | | | | | | | | | | | | | | | | | | The two options are * nocover/cover: Prevent/allow mounting over an existing root mountpoint. E.g., "mount -t ufs -o nocover /dev/sd1a /usr/local" will fail if /usr/local is already a mountpoint. * emptydir/noemptydir: Prevent/allow mounting on a non-empty directory. E.g., "mount -t ufs -o emptydir /dev/sd1a /usr" will fail. Neither of these options is intended to be a default, for historical and compatibility reasons. Reviewed by: allanjude, kib Differential Revision: https://reviews.freebsd.org/D21458 Notes: svn path=/head/; revision=352614
* Add a new "untrusted" option to the mount command. Its purposeKirk McKusick2019-07-011-1/+3
| | | | | | | | | | | | | | | | | | | is to notify the kernel that the file system is untrusted and it should use more extensive checks on the file-system's metadata before using it. This option is intended to be used when mounting file systems from untrusted media such as USB memory sticks or other externally-provided media. It will initially be used by the UFS/FFS file system, but should likely be expanded to be used by other file systems that may appear on external media like msdosfs, exfat, and ext2fs. Reviewed by: kib Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D20786 Notes: svn path=/head/; revision=349589
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* 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
* Add a free_iovec() function to reset iovec's.Brooks Davis2016-12-141-0/+1
| | | | | | | | | | | | | The primary purpose is to call nmount() in a loop with new iovec's so free_iovec takes arguments by reference and resets their values. Reviewed by: cem MFC after: 1 week Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D8513 Notes: svn path=/head/; revision=310092
* Bring in the new automounter, similar to what's provided in most otherEdward Tomasz Napierala2014-08-171-2/+4
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=270096
* Change checkpath() to not exit on error. This is a prerequisite forJaakko Heinonen2012-01-161-1/+1
| | | | | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version) Notes: svn path=/head/; revision=230226
* Implement NFSv4 ACL support for UFS.Edward Tomasz Napierala2009-12-211-1/+3
| | | | | | | Reviewed by: rwatson Notes: svn path=/head/; revision=200796
* Remove unsupported "dev" option from comments of mntopts.h.Craig Rodrigues2005-12-021-1/+1
| | | | | | | Requested by: jkoshy Notes: svn path=/head/; revision=153007
* Remove MNT_NODEV mount option. In RELENG_6, MNT_NODEV was a no-op.Craig Rodrigues2005-11-291-2/+0
| | | | | | | | | The presence of MNT_NODEV was confusing the am-utils autoconf scripts. PR: conf/79715 Notes: svn path=/head/; revision=152912
* - Make size parameter to build_iovec() a size_t, not an intCraig Rodrigues2005-11-131-1/+2
| | | | | | | | | | - Add build_iovec_argf() helper function, for help converting old mount options which used the mount_argf() function for the mount() syscall. Discussed with: phk Notes: svn path=/head/; revision=152354
* Use MOPT_END in favor of MOPT_NULL, which better describes the purporseXin LI2005-06-101-2/+2
| | | | | | | of the macro. Notes: svn path=/head/; revision=147242
* Add a handy macro to represent null mount option, MOPT_NULL, and makeXin LI2005-06-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | use of the macro in sbin/mount*'s, by replacing: mopts[] = { MOPT_STDOPTS, { NULL } } With: mopts[] = { MOPT_STDOPTS, MOPT_NULL } This change will help to reduce the situation that we don't explicitly initialize "struct mntopt"'s. It should not contribute to any functional/logical changes as far as I can tell. Notes: svn path=/head/; revision=146853
* Revert last change. It doesn't break mount(8) reportingRuslan Ermilov2004-11-301-0/+2
| | | | | | | but allows a "nodev" in /etc/fstab, etc. Notes: svn path=/head/; revision=138234
* Fix the mount(8) status reporting, now that MNT_NODEV is a no-op (zero).Ruslan Ermilov2004-11-291-2/+0
| | | | | | | Asked to commit by: phk Notes: svn path=/head/; revision=138187
* Add a convenience function for building nmount iov arrays.Poul-Henning Kamp2004-11-251-0/+1
| | | | Notes: svn path=/head/; revision=138095
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Teach mount(8) about MNT_ACLS for the purposes of mount options andRobert Watson2002-10-141-1/+3
| | | | | | | | | | mount option printing. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105118
* Introduce support for Mandatory Access Control and extensibleRobert Watson2002-08-021-1/+3
| | | | | | | | | | | | | | | | | kernel access control. Teach mount(8) to understand the MNT_MULTILABEL flag, which is used to determine whether a file system operates with individual per-vnode labels, or treats the entire file system as a single object with a single (mount) label. The behavior here will probably evolve some now that nmount(2) is available and can more flexibly support mount options. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=101205
* o __P removedWarner Losh2002-03-211-3/+3
| | | | | | | o main prototype removed Notes: svn path=/head/; revision=92882
* Add the snapshot option to mount_ufs.Kirk McKusick2000-07-061-0/+1
| | | | Notes: svn path=/head/; revision=62664
* mount* fixes from Martin Blapp <mb@imp.ch>:Poul-Henning Kamp1999-10-091-0/+2
| | | | | | | | | | | | | | | | | | | | Made mount more userfriendly (bad slashes are now filtered out) and we remove in mount_nfs trailing slashes if there are any. Fixed mount_xxx binarys to resolve with realpath(3) the mountpoint. Translate the deprecated nfs-syntax with '@' to ':' . The ':' syntax has now precedence, but '@' still works. Notify the user that the '@' syntax should not be used. PR: 7846 PR: 13692 Submitted by: Martin Blapp <mb@imp.ch> Reviewed by: phk Notes: svn path=/head/; revision=52055
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Remove unused #includes. Spelling. Add rcsid. Do not dot terminate err()Philippe Charnier1998-07-061-3/+3
| | | | | | | strings. Notes: svn path=/head/; revision=37425
* New mount option nosymfollow. If enabled, the kernel lookup()Wolfram Schneider1998-04-081-1/+3
| | | | | | | | function will not follow symbolic links on the mounted file system and return EACCES (Permission denied). Notes: svn path=/head/; revision=35105
* Reviewed by: hackers@freebsd.org in generalJulian Elischer1997-11-131-1/+3
| | | | | | | | | | | | | | | | Obtained from: Whistle Communications tree Add an option to the way UFS works dependent on the SUID bit of directories This changes makes things a whole lot simpler on systems running as fileservers for PCs and MACS. to enable the new code you must 1/ enable option SUIDDIR on the kernel. 2/ mount the filesystem with option suiddir. hopefully this makes it difficult enough for people to do this accidentally. see the new chmod(2) man page for detailed info. Notes: svn path=/head/; revision=31144
* Add noclusterr and noclusterw options. The noclusterr and noclusterwKATO Takenori1997-09-271-2/+6
| | | | | | | | | disable clustered read and write, respectively. Reviewed by: bde Notes: svn path=/head/; revision=29890
* Moved getmntops() stuff back to mntopt.h so that it is visible in otherBruce Evans1997-08-251-1/+4
| | | | | | | mount utilities. Notes: svn path=/head/; revision=28735
* Try to avoid mounting filesystems multiple times. Also whileSteve Price1997-08-241-3/+1
| | | | | | | | | | I'm here do some -Wall cleaning. PR: kern/1839 Reviewed and corrected by: joerg Notes: svn path=/head/; revision=28671
* Merge from Lite2Peter Wemm1997-03-111-11/+11
| | | | | | | | | | - use new getvfsbyname() interface and mount(2) interface **DANGER WILL ROBINSON!!** You must be running a -current kernel from within a week or so in order for this to work! Notes: svn path=/head/; revision=23678
* Implemented user side of "noatime" mount option. This option disablesDavid Greenman1996-09-031-1/+3
| | | | | | | | | the file access time update on reads and can be useful in reducing filesystem overhead in cases where the access time is not important (like Usenet news spools). Notes: svn path=/head/; revision=18007
* The changes for adding the "noauto" option were mostly wrong. MNT_NOAUTODavid Greenman1995-08-261-1/+1
| | | | | | | | is a kernel flag, and the kernel definately doesn't need to know about it. Notes: svn path=/head/; revision=10288
* Add a "noauto" flag so that you can do things like prevent your systemJordan K. Hubbard1995-08-231-0/+2
| | | | | | | | | from not coming up multiuser just because you have a CD mount in fstab but no CD in the drive. Submitted by: "Full Name Not Supplied" <simon@masi.ibp.fr> Notes: svn path=/head/; revision=10199
* Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptableDavid Greenman1995-05-121-1/+1
| | | | | | | options for UFS (which fixes another bug). Notes: svn path=/head/; revision=8487
* Add support for filesystem-specific `-o' options, and re-implement theGarrett Wollman1994-11-011-14/+16
| | | | | | | | | | | | | | | | | | | most common cd9660 and nfs options like God intended them. (It is now possible to say mount -o ro,soft,bg,intr there:/foo/bar /foo/bar again.) This whole getmntopt() business is an incredible botch; it never should have been anything more than a wrapper around getsubopt(3). Because if the way the current hackaround is implemented, options which take arguments (like the old `rsize' and `wsize') are still unavailable, and must be accessed the new, broken way. (It's unimaginable how Berkeley managed to screw up one of the few things about NFS that Sun actually got right to begin with!) Notes: svn path=/head/; revision=4065
* Add code to skip "userquota"/"groupquota" options needed forAndrey A. Chernov1994-09-291-0/+4
| | | | | | | quotaon/quotacheck Notes: svn path=/head/; revision=3202
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-261-0/+72
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558