aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/mount.2
Commit message (Collapse)AuthorAgeFilesLines
* Document EINTEGRITY errors for many system calls.John Baldwin2020-03-301-1/+8
| | | | | | | | | | | | | | | | | | | EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY as a filesystem-independent error that may be reported by the backing store of a filesystem. While here, document EIO as a filesystem-independent error for both mount(2) and posix_fadvise(2). EIO was previously only documented for UFS for mount(2). Reviewed by: mckusick Suggested by: mckusick MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D24168 Notes: svn path=/head/; revision=359465
* When mounting a UFS filesystem, return EINTEGRITY rather than EIOKirk McKusick2020-03-111-0/+4
| | | | | | | | | | | | when a superblock check-hash error is detected. This change clarifies a mount that failed due to media hardware failures (EIO) from a mount that failed due to media errors (EINTEGRITY) that can be corrected by running fsck(8). Sponsored by: Netflix Notes: svn path=/head/; revision=358899
* Add two options to allow mount to avoid covering up existing mount points.Sean Eric Fagan2019-09-231-1/+15
| | | | | | | | | | | | | | | | | | | 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
* Mark all the system calls that were in 1st Edition Unix as such in theWarner Losh2017-12-011-2/+2
| | | | | | | | | | HISTORY section. Note: Any system calls that were added prior to v7, but after v1 weren't changed. Obtained from: http://www.tuhs.org/cgi-bin/utree.pl?file=V1/man/man2 Notes: svn path=/head/; revision=326435
* 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
* Remove obsolete bits about maximum number of file systems.Sergey Kandaurov2015-04-121-6/+1
| | | | | | | | | NMOUNT has gone together with static mount table in 4.3BSD-Reno. MFC after: 1 week Notes: svn path=/head/; revision=281470
* Ta is only allowed with Bl -column not in Bl -itemBaptiste Daroussin2014-11-231-1/+1
| | | | Notes: svn path=/head/; revision=274933
* Change the current working directory to be inside the jail created byColin Percival2010-05-271-1/+8
| | | | | | | | | | | | | | | | | the jail(8) command. [10:04] Fix a one-NUL-byte buffer overflow in libopie. [10:05] Correctly sanity-check a buffer length in nfs mount. [10:06] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-10:04.jail Security: FreeBSD-SA-10:05.opie Security: FreeBSD-SA-10:06.nfsclient Notes: svn path=/head/; revision=208586
* Add information about when nmount(2) was introduced.Edward Tomasz Napierala2010-01-261-1/+5
| | | | Notes: svn path=/head/; revision=203036
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Fix a few markup nits in previous commit.Tom Rhodes2005-02-251-1/+1
| | | | | | | Noticed by: ru, who else? :) Notes: svn path=/head/; revision=142412
* Do not mislead users into checking for a mount_ufs or mount_ufs2 manualTom Rhodes2005-02-241-1/+3
| | | | | | | | | | page. They do not exist. PR: 53303 Submitted by: Marc Silver <marcs@draenor.org> (original version) Notes: svn path=/head/; revision=142349
* Sort sections.Ruslan Ermilov2005-01-201-2/+2
| | | | Notes: svn path=/head/; revision=140505
* MNT_NODEV is deprecated.Ruslan Ermilov2004-11-291-4/+1
| | | | Notes: svn path=/head/; revision=138188
* Document the MNT_SNAPSHOT mount flag with a cross-referencePeter Pentchev2004-08-131-1/+7
| | | | | | | | | | to mksnap_ffs(8). PR: 70402 Submitted by: James Raftery <james@now.ie> Notes: svn path=/head/; revision=133654
* Markup, grammar, and spelling fixes.Ruslan Ermilov2004-06-301-6/+6
| | | | Notes: svn path=/head/; revision=131365
* Add fairly minimal documentation for the nmount() syscall.Tim J. Robbins2004-03-161-2/+34
| | | | Notes: svn path=/head/; revision=127060
* In the !MNT_BYFSID case, return EINVAL from unmount(2) when theIan Dowse2003-09-081-7/+12
| | | | | | | | | | | | | | | | | specified directory is not found in the mount list. Before the MNT_BYFSID changes, unmount(2) used to return ENOENT for a nonexistent path and EINVAL for a non-mountpoint, but we can no longer distinguish between these cases. Of the two error codes, EINVAL was more likely to occur in practice, and it was the only one of the two that was documented. Update the manual page to match the current behaviour. Suggested by: tjr Reviewed by: tjr Notes: svn path=/head/; revision=119885
* Add a new mount flag MNT_BYFSID that can be used to unmount a fileIan Dowse2003-07-011-1/+17
| | | | | | | | | | | | | | | | | | | | | system by specifying the file system ID instead of a path. Use this by default in umount(8). This avoids the need to perform any vnode operations to look up the mount point, so it makes it possible to unmount a file system whose root vnode cannot be looked up (e.g. due to a dead NFS server, or a file system that has become detached from the hierarchy because an underlying file system was unmounted). It also provides an unambiguous way to specify which file system is to be unmunted. Since the ability to unmount using a path name is retained only for compatibility, that case now just uses a simple string comparison of the supplied path against f_mntonname of each mounted file system. Discussed on: freebsd-arch mdoc help from: ru Notes: svn path=/head/; revision=117132
* Separate the description of the flags for mount(2) and unmount(2)Ian Dowse2003-06-301-14/+16
| | | | | | | | | | | to clarify which system call accepts which arguments. Previously the manual page gave the impression that calling unmount() with flags of (MNT_FORCE | MNT_UPDATE | MNT_RDONLY) would downgrade a read-write mount to read-only, which is clearly untrue; to do that, these flags should be passed to mount() instead. Notes: svn path=/head/; revision=117089
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-231-6/+7
| | | | Notes: svn path=/head/; revision=111285
* Mention the oddities and requirements for mount operations executed byJoerg Wunsch2003-01-131-3/+16
| | | | | | | | | | | non-root users. PR: docs/42651 Submitted by: Thomas Seck <tmseck@netcologne.de> MFC after: 3 days Notes: svn path=/head/; revision=109186
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-3/+13
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.Ruslan Ermilov2002-12-181-15/+15
| | | | Notes: svn path=/head/; revision=108040
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-7/+8
| | | | | | | | | | | | | Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe. Notes: svn path=/head/; revision=108028
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-34/+34
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-2/+2
| | | | Notes: svn path=/head/; revision=84306
* Use ``.Rv -std'' wherever possible.Ruslan Ermilov2001-08-311-13/+1
| | | | | | | Submitted by: yar Notes: svn path=/head/; revision=82642
* Remove whitespace at EOL.Dima Dorfman2001-07-151-4/+4
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* Remove vestiges of MFS.Ruslan Ermilov2001-06-011-23/+0
| | | | Notes: svn path=/head/; revision=77575
* mdoc(7) police: Er macro usage cleanup.Ruslan Ermilov2000-11-221-4/+4
| | | | Notes: svn path=/head/; revision=69051
* Use `Er' variable to define first column width in ERRORS section. It wasAlexey Zelkin2000-05-041-1/+1
| | | | | | | initially suggested by mdoc(7) style, but was broken over the years Notes: svn path=/head/; revision=59954
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Remove some 4.3BSDish anacronisims that stated that it was anMike Pritchard1999-08-271-3/+1
| | | | | | | | | | error for a pathname to contain a character with the high-order bit set. Inspired by: joerg's previous commit Notes: svn path=/head/; revision=50466
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Fixed references to unmount(2) specified as umount.Alexander Langer1999-03-051-4/+4
| | | | | | | | Submitted by: Markus Friedl <markus.friedl@informatik.uni-erlangen.de> via OpenBSD Notes: svn path=/head/; revision=44484
* Typo fix.Joseph Koshy1998-08-281-1/+1
| | | | Notes: svn path=/head/; revision=38596
* correct a typo I just noticed.Jordan K. Hubbard1998-02-171-1/+1
| | | | Notes: svn path=/head/; revision=33515
* Reviewed by: hackers@freebsd.org in generalJulian Elischer1997-11-131-0/+12
| | | | | | | | | | | | | | | | 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
* Reviewed by: various.Julian Elischer1997-11-121-3/+2
| | | | | | | | | | | | | | | | | | | Ever since I first say the way the mount flags were used I've hated the fact that modes, and events, internal and exported, and short-term and long term flags are all thrown together. Finally it's annoyed me enough.. This patch to the entire FreeBSD tree adds a second mount flag word to the mount struct. it is not exported to userspace. I have moved some of the non exported flags over to this word. this means that we now have 8 free bits in the mount flags. There are another two that might well move over, but which I'm not sure about. The only user visible change would have been in pstat -v, except that davidg has disabled it anyhow. I'd still like to move the state flags and the 'command' flags apart from each other.. e.g. MNT_FORCE really doesn't have the same semantics as MNT_RDONLY, but that's left for another day. Notes: svn path=/head/; revision=31132
* Describe MNT_NOCLUSTER{R,W} flags.KATO Takenori1997-11-091-0/+4
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=31050
* changed prototype to match textJohn-Mark Gurney1997-11-051-8/+4
| | | | | | | | changed sysctl to lsvfs as "sysctl vfs" doesn't return a listing of possible filesystem names Notes: svn path=/head/; revision=30963
* Updated prototype for mount() to match Lite2 reality for the 1st argBruce Evans1997-03-131-1/+1
| | | | | | | and Lite1 or earlier reality for the 4th arg. Notes: svn path=/head/; revision=23862
* Merge from Lite2 onto mainline -Peter Wemm1997-03-111-153/+21
| | | | | | | | - add undelete() and undelete.2 (requires libc minor bump some time) - man page updates Notes: svn path=/head/; revision=23660
* Update to reflect new Lite2 mount.h and friends.Mike Pritchard1997-02-101-50/+53
| | | | Notes: svn path=/head/; revision=22527
* Update to reflect current include files.Mike Pritchard1997-01-301-21/+124
| | | | Notes: svn path=/head/; revision=22134
* Sort cross references.Wolfram Schneider1997-01-201-2/+2
| | | | Notes: svn path=/head/; revision=21907
* Remove the EINVAL error from the ERRORS sections thatMike Pritchard1997-01-111-2/+0
| | | | | | | | say is means that a pathname had the high-order bit set, since this is no longer an error. Notes: svn path=/head/; revision=21570