summaryrefslogtreecommitdiffstats
path: root/sbin/mount
Commit message (Collapse)AuthorAgeFilesLines
* Implement the -r and -w options as `-o ro' and `-o noro', respectively. Atdd2001-05-021-2/+2
| | | | | | | | | | least in -w's case, simply unsetting the correct bit in init_flags was not enough. The bit may be reset later if, say, the filesystem is marked `ro' in fstab. The command line option should override the fstab setting, but did not. The implementation of -r was changed for consistency. PR: 26886 Reviewed by: archie
* mdoc(7) police: fix markup.ru2001-04-261-22/+23
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+0
|
* Add an xref for mount_ntfs.nik2001-02-021-0/+1
| | | | | PR: docs/24693 Submitted by: Etienne Vidal <hallik@libertysurf.fr>
* Always print out the target device when the mount fails, not just onbsd2001-01-251-4/+1
| | | | ENOENT.
* Provide a better error message when the /dev entry is non-existant.bsd2001-01-251-0/+3
| | | | | Due to the old message, I spent way more time debugging a diskless root problem than it should have taken.
* Retire kernfs (userland part).des2000-12-281-1/+0
|
* Prepare for mdoc(7)NG.ru2000-12-181-0/+1
|
* mdoc(7) police: misc minor fixes.ru2000-11-231-44/+57
|
* o get rid lfs mentionsphantom2000-11-221-3/+3
| | | | o remove non-mdoc groff's instructions
* We do not support lfs. Remove it from list of remountable fs'es.phantom2000-11-221-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-202-8/+8
|
* .Xr to mount_ext2fs, mount_hpfs, mount_linprocfs, mount_nwfs, andnik2000-10-291-0/+5
| | | | | | | mount_std. PR: docs/20369 Submitted by: bmah
* Explain the notion that additional mount options may be describedsheldonh2000-08-281-6/+11
| | | | | | | in mount_XXX manual pages. Remove explicit mention of NFS mount options, since they are accurately described by this rule. PR: 20814
* Only print information about reads and writes when the -v flag (forsheldonh2000-08-231-6/+8
| | | | | | | | verbose mode) is specified. This should really have been the case when this extra cruft was first introduced in rev 1.23. PR: 20710 Reported by: Mike Meyer <mwm@mired.org>
* optreset is declared in unistd.h now.imp2000-08-161-1/+0
|
* Add the snapshot option to mount_ufs.mckusick2000-07-062-0/+2
|
* Removed xref to mount_lfs, this died in 2.mumble.nik2000-04-301-1/+0
| | | | | PR: docs/18272 Submitted by: Michael Lucas <mwlucas@blackhelicopters.org>
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-6/+12
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Don't scare the users.alfred2000-02-221-4/+0
| | | | | | | Kirk argees that the comment about corruption caused by switching the flags on an already mounted manpage are bogus, it doesn't happen. Ok by: mckusick
* This is another in Martin Blapp's N-series of mount-related cleanups :)green2000-01-151-3/+6
| | | | | | | | | | | | | Changes are: - rpc.umntall is called at the right places now in /etc/rc* - rpc.umntall timeout has been lowered from two days (too high) to one - verbose messages in rpc.umntall have been clarified - kill double entries in /var/db/mounttab when rpc.umntall is invoked - ${early_nfs_mounts} has been removed from /etc/rc - patched mount(8) -p to print different pass/dump values for ufs filesystems. (last patch recieved from dan <bugg@bugg.strangled.net>) Submitted by: Martin Blapp <mbr@imp.ch>, dan <bugg@bugg.strangled.net>
* Fix tab completion mounts (like /cdrom/)eivind1999-12-261-0/+1
| | | | Submitted by: Martin Blapp <mb@imp.ch>
* Print out the filesystem read counts now collected by the kernel.mckusick1999-12-011-0/+3
| | | | | Submitted by: Craig A Soules <soules+@andrew.cmu.edu> Reviewed by: Kirk McKusick <mckusick@mckusick.com>
* Fix a few things:green1999-10-301-15/+31
| | | | | | | | | | | | | 1. Get rid of the evilly bogus strdup(fstab) and free if (fstab == "") as in umount. 2. Don't use /etc/fstab info if the mount instance does not exactly match the fstab entry. 3. Reversed the mountpoint checking order in getmntpt(). 4. Clarify the "not mounted" error message in mount -u. The previous "unknown special file or file system" wasn't quite right. 5. Get rid of a 1-byte memory leak; this was reported by jhb. Submitted by: Martin Blapp <mb@imp.ch>
* Let a file with '@' or ':' in it take precedence over defaulting togreen1999-10-101-2/+4
| | | | nfs.
* mount* fixes from Martin Blapp <mb@imp.ch>:phk1999-10-093-11/+44
| | | | | | | | | | | | | | | | | 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
* - Fixed some cases in which mount was segfaulting.n_hibma1999-10-081-10/+12
| | | | | | | | | Original patch from Adrian. Martin added a check for free(). - Included the filesystem type in output of mount PR: bin/13143 Submitted-By: Martin Blapp <mblapp@kassiopeja.lan.attic.ch>
* Document the "noasync" option.obrien1999-09-281-0/+3
|
* $Id$ -> $FreeBSD$peter1999-08-289-9/+9
|
* Add $Id$ to these manpages.nik1999-07-121-0/+1
| | | | Approved by: bde
* Null commit.jkoshy1999-05-072-2/+2
| | | | | | | > PR: bin/6399 > Submitted by: David Malone <dwmalone@maths.tcd.ie> Also reviewed by: bde
* 1. Enhanced syntax for mount(8). The -o option now supports two 'meta'jkoshy1999-05-072-39/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | options: -o fstab brings in filesystem options specified in /etc/fstab -o current incorporates the current set of options for the file system The rightmost option wins in the case of conflicting options being specified. E.g.:- # mount -u -o current,nosuid /home will preserve the current mount options while adding the 'nosuid' flag. 2. Rewording of manual page to be hopefully clearer; small -Wall cleanups. Thanks to David Malone for his patience and willingness to work multiple patches on request. PR: bin/6399 Submitted by: David Malone <dwmalone@maths.tcd.ie>
* modload -> kldload and add ref to kldload(8) in See Also section.ghelmer1999-04-081-2/+3
| | | | Submitted by: Nathan Ahlstrom <nrahlstr@winternet.com>
* Fixed `mount -a -u ...'. Rev.1.19 broke this by trying too hard tobde1999-03-161-2/+3
| | | | | | | avoid mounting filesystems multiple times. PR: 10572 Submitted by: Cy Schubert <cy@cschuber.net.gov.bc.ca>
* Removed ROOTSLICE_HUNT. The root device is now found better bybde1999-01-092-38/+3
| | | | | | | getvfsent() in most cases. (The main exception is when /etc/fstab still hasn't been converted to use a slice for the root device, the root device is a SCSI device, and the /dev/sd* inode for this device still hasn't been renamed to /dev/da*.)
* Warn about "mount -u" bug.des1998-10-161-1/+5
|
* Add a CAVEAT section documenting the minimum permissions required for a mountjkoshy1998-07-091-1/+8
| | | | | | point to be traversable in both directions by all users. PR: 7172
* Remove unused #includes. Spelling. Add rcsid. Do not dot terminate err()charnier1998-07-066-49/+36
| | | | strings.
* Print the write counts if they are nonzero even if we're mountedbde1998-06-081-4/+3
| | | | | | readonly, since they tell us about previous write activity. Use the correct format to print the write counts.
* Remove extraneous ")" from output.dt1998-05-171-2/+2
|
* New mount option nosymfollow. If enabled, the kernel lookup()wosch1998-04-083-3/+11
| | | | | function will not follow symbolic links on the mounted file system and return EACCES (Permission denied).
* Don't print the 'writes: sync & async' stuff if we're mounted readonlypeter1998-03-271-3/+6
| | | | or if the fs isn't keeping the stats..
* Fix a type mismatch between a scanf format string and thejdp1998-03-081-3/+3
| | | | corresponding argument.
* Make this compile again.steve1998-03-081-3/+3
| | | | | PR: 5948 Submitted by: Brian Feldman
* If we are mounting the root filesystem, and we're accessing it throughmsmith1998-03-082-3/+38
| | | | | | | | | | | | | | something that might refer to the compatability slice rather than the correct slice entry, try all the possible slice entries first. This is a compatability hack to deal with the case where the kernel has correctly mounted the root filesystem out of its slice, but the user has not updated their /etc/fstab file to reflect this. A diagnostic is emitted if the mount succeeds, indicating that the file should be updated. This is a prelude to fixing the kernel to behave as alluded to above. Reviewed by: (discussed with) julian, phk
* Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)julian1998-03-081-2/+6
| | | | | Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree
* Converted putfsent() to Lite2 mount interface - don't use numericbde1998-02-131-2/+2
| | | | filesystem types.
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-201-2/+1
| | | | the default.
* Add mount_devfs(8) to the SEE ALSO section.steve1997-12-011-1/+2
| | | | PR: 5125
OpenPOWER on IntegriCloud