#
51e16cb8 |
|
23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sbin: Remove ancient SCCS tags. Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
|
#
42b38843 |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .h pattern Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
#
906c312b |
|
15-Jan-2023 |
Kirk McKusick <mckusick@FreeBSD.org> |
Document the mntopts(3) functions. The mntopts(3) functions support operations associated with a mount point. The main purpose of this commit is to document the mntopts(3) functions that now appear in 18 utilities in the base system. See mntopts(3) for the documentation details. The getmntopts() function appeared in 4.4BSD. The build_iovec(), build_iovec_argf(), free_iovec(), checkpath(), and rmslashes() functions were added with nmount(8) in FreeBSD 5.0. The getmntpoint() and chkdoreload() functions are being added in this commit. These functions should be in a library but for historic reasons are in a file in the sources for the mount(8) program. Thus, to access them the following lines need to be added to the Makefile of the program wanting to use them: SRCS+= getmntopts.c MOUNT= ${SRCTOP}/sbin/mount CFLAGS+= -I${MOUNT} .PATH: ${MOUNT} Once these changes have been MFC'ed to 13 they may be made into a library. Reviewed by: kib, gbe MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37907
|
#
a3f714c4 |
|
07-Nov-2022 |
Doug Rabson <dfr@FreeBSD.org> |
Add support for mounting single files in nullfs My main use-case for this is to support mounting config files and secrets into OCI containers. My current workaround copies the files into the container which is messy and risks secrets leaking into container images if the cleanup fails. Reviewed by: mjg, kib Tested by: pho Differential Revision: https://reviews.freebsd.org/D37478
|
#
ba7a55d9 |
|
22-Sep-2019 |
Sean Eric Fagan <sef@FreeBSD.org> |
Add two options to allow mount to avoid covering up existing mount points. 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
|
#
daba4da8 |
|
01-Jul-2019 |
Kirk McKusick <mckusick@FreeBSD.org> |
Add a new "untrusted" option to the mount command. Its purpose 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
|
#
8a16b7a1 |
|
20-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
General further adoption of SPDX licensing ID tags. 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.
|
#
fbbd9655 |
|
28-Feb-2017 |
Warner Losh <imp@FreeBSD.org> |
Renumber copyright clause 4 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
|
#
b3272088 |
|
14-Dec-2016 |
Brooks Davis <brooks@FreeBSD.org> |
Add a free_iovec() function to reset iovec's. 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
|
#
3914ddf8 |
|
17-Aug-2014 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
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
|
#
d3250014 |
|
16-Jan-2012 |
Jaakko Heinonen <jh@FreeBSD.org> |
Change checkpath() to not exit on error. This is a prerequisite for fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version)
|
#
a7d5f7eb |
|
19-Oct-2010 |
Jamie Gritton <jamie@FreeBSD.org> |
A new jail(8) with a configuration file, to replace the work currently done by /etc/rc.d/jail.
|
#
0718d64d |
|
18-Apr-2010 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
MFC r200796: Implement NFSv4 ACL support for UFS. Reviewed by: rwatson
|
#
fe0506d7 |
|
09-Mar-2010 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Create the altix project branch. The altix project will add support for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
|
#
9340fc72 |
|
21-Dec-2009 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Implement NFSv4 ACL support for UFS. Reviewed by: rwatson
|
#
d7f03759 |
|
19-Oct-2008 |
Ulf Lilleengen <lulf@FreeBSD.org> |
- Import the HEAD csup code which is the basis for the cvsmode work.
|
#
30cb180f |
|
01-Dec-2005 |
Craig Rodrigues <rodrigc@FreeBSD.org> |
Remove unsupported "dev" option from comments of mntopts.h. Requested by: jkoshy
|
#
2207c764 |
|
28-Nov-2005 |
Craig Rodrigues <rodrigc@FreeBSD.org> |
Remove MNT_NODEV mount option. In RELENG_6, MNT_NODEV was a no-op. The presence of MNT_NODEV was confusing the am-utils autoconf scripts. PR: conf/79715
|
#
b19e74ca |
|
12-Nov-2005 |
Craig Rodrigues <rodrigc@FreeBSD.org> |
- Make size parameter to build_iovec() a size_t, not an int - 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
|
#
46b7a14b |
|
10-Jun-2005 |
Xin LI <delphij@FreeBSD.org> |
Use MOPT_END in favor of MOPT_NULL, which better describes the purporse of the macro.
|
#
73ac4505 |
|
01-Jun-2005 |
Xin LI <delphij@FreeBSD.org> |
Add a handy macro to represent null mount option, MOPT_NULL, and make 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.
|
#
798dec9d |
|
30-Nov-2004 |
Ruslan Ermilov <ru@FreeBSD.org> |
Revert last change. It doesn't break mount(8) reporting but allows a "nodev" in /etc/fstab, etc.
|
#
5f047028 |
|
29-Nov-2004 |
Ruslan Ermilov <ru@FreeBSD.org> |
Fix the mount(8) status reporting, now that MNT_NODEV is a no-op (zero). Asked to commit by: phk
|
#
3e7c7ae0 |
|
25-Nov-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add a convenience function for building nmount iov arrays.
|
#
4c723140 |
|
09-Apr-2004 |
Mark Murray <markm@FreeBSD.org> |
Remove advertising clause from University of California Regent's license, per letter dated July 22, 1999. Approved by: core, imp
|
#
03d94b50 |
|
14-Oct-2002 |
Robert Watson <rwatson@FreeBSD.org> |
Teach mount(8) about MNT_ACLS for the purposes of mount options and mount option printing. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
|
#
ba0fbe96 |
|
02-Aug-2002 |
Robert Watson <rwatson@FreeBSD.org> |
Introduce support for Mandatory Access Control and extensible 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
|
#
85429990 |
|
21-Mar-2002 |
Warner Losh <imp@FreeBSD.org> |
o __P removed o main prototype removed
|
#
115f72d0 |
|
05-Jul-2000 |
Kirk McKusick <mckusick@FreeBSD.org> |
Add the snapshot option to mount_ufs.
|
#
73dd3167 |
|
09-Oct-1999 |
Poul-Henning Kamp <phk@FreeBSD.org> |
mount* fixes from Martin Blapp <mb@imp.ch>: 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
|
#
7f3dea24 |
|
27-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
#
bcb1d846 |
|
06-Jul-1998 |
Philippe Charnier <charnier@FreeBSD.org> |
Remove unused #includes. Spelling. Add rcsid. Do not dot terminate err() strings.
|
#
5ddc8ded |
|
08-Apr-1998 |
Wolfram Schneider <wosch@FreeBSD.org> |
New mount option nosymfollow. If enabled, the kernel lookup() function will not follow symbolic links on the mounted file system and return EACCES (Permission denied).
|
#
52bf64c7 |
|
12-Nov-1997 |
Julian Elischer <julian@FreeBSD.org> |
Reviewed by: hackers@freebsd.org in general 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.
|
#
75b714ac |
|
27-Sep-1997 |
KATO Takenori <kato@FreeBSD.org> |
Add noclusterr and noclusterw options. The noclusterr and noclusterw disable clustered read and write, respectively. Reviewed by: bde
|
#
8e30c099 |
|
25-Aug-1997 |
Bruce Evans <bde@FreeBSD.org> |
Moved getmntops() stuff back to mntopt.h so that it is visible in other mount utilities.
|
#
fba1c154 |
|
24-Aug-1997 |
Steve Price <steve@FreeBSD.org> |
Try to avoid mounting filesystems multiple times. Also while I'm here do some -Wall cleaning. PR: kern/1839 Reviewed and corrected by: joerg
|
#
c06fe0a0 |
|
10-Mar-1997 |
Peter Wemm <peter@FreeBSD.org> |
Merge from Lite2 - 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!
|
#
92e2d9be |
|
05-Mar-1997 |
Bruce Evans <bde@FreeBSD.org> |
Attempt to import Lite2's mount.
|
#
55e50ace |
|
03-Sep-1996 |
David Greenman <dg@FreeBSD.org> |
Implemented user side of "noatime" mount option. This option disables 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).
|
#
89beb278 |
|
25-Aug-1995 |
David Greenman <dg@FreeBSD.org> |
The changes for adding the "noauto" option were mostly wrong. MNT_NOAUTO is a kernel flag, and the kernel definately doesn't need to know about it.
|
#
81b9534d |
|
22-Aug-1995 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
Add a "noauto" flag so that you can do things like prevent your system 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>
|
#
e83d87f1 |
|
12-May-1995 |
David Greenman <dg@FreeBSD.org> |
Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptable options for UFS (which fixes another bug).
|
#
3fa88dec |
|
01-Nov-1994 |
Garrett Wollman <wollman@FreeBSD.org> |
Add support for filesystem-specific `-o' options, and re-implement the 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!)
|
#
0fd4e043 |
|
29-Sep-1994 |
Andrey A. Chernov <ache@FreeBSD.org> |
Add code to skip "userquota"/"groupquota" options needed for quotaon/quotacheck
|
#
8fae3551 |
|
26-May-1994 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
BSD 4.4 Lite sbin Sources Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
|