summaryrefslogtreecommitdiffstats
path: root/sbin/mount_ifs
Commit message (Collapse)AuthorAgeFilesLines
* Removed unused copy of ../mount/getmtopts.3.bde2001-01-175-461/+5
| | | | | | | | | | | Removed used copies of ../mount/getmntopts.c ../mount/mntopts.h. Use the versions in ../mount directly like all other mount utilities. Removed used copy of ../mount/pathnames.h. Use the version in ../mount for free as a side effect of using the mntopts files there. We should not use it at all, since the 2/3 of the definitions in it are in <paths.h> and the other 1/3 should be in ../mountd/pathnames.h and is not used by mount_ifs anyway.
* Removed unused rotting copy of ../mount/mount.8. It should never havebde2001-01-171-385/+0
| | | | been repo-copied.
* Prepare for mdoc(7)NG.ru2001-01-161-1/+1
|
* Retire kernfs (userland part).des2000-12-281-1/+0
|
* Prepare for mdoc(7)NG.ru2000-12-181-0/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-202-8/+8
|
* Pre-IFS commit. Commit IFS-aware fsck and mount utilities.adrian2000-10-145-295/+22
| | | | | | | | | | | | | | | | | | | mount_ifs: repocopy of sbin/mount, with most of the intelligence ripped out and "ufs" replaced with "ifs" in the right places. It will only mount a single filesystem, rather than the -t <type> magic that our real mount does. fsck_ifs: repocopy of sbin/fsck_ffs, but the directory structure stuff (pass2 and some refcount checks) has been #ifdef'ed out. src/sbin/Makefile: Build these two utilities There is probably cruft code left in both which can be removed at a later date, especially in mount_ifs, but I trust that people will not try mount_ifs -a .. Note: there are no man pages installed for these two commands as I haven't actually written them yet.
* 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
* Reviewed by: hackers@freebsd.org in generaljulian1997-11-133-3/+22
| | | | | | | | | | | | | 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.
* Add noclusterr and noclusterw options. The noclusterr and noclusterwkato1997-09-273-4/+18
| | | | | | disable clustered read and write, respectively. Reviewed by: bde
* Removed duplicate MOPT_FORCE and sorted the first one. Rev.1.5 andbde1997-08-251-3/+2
| | | | Lite2 messed up the ordering differently.
* Moved getmntops() stuff back to mntopt.h so that it is visible in otherbde1997-08-252-8/+5
| | | | mount utilities.
* Backed out previous commit - don't clobber the (normally equivalent)bde1997-08-251-2/+1
| | | | default for NOSHARED.
* Forgot to cvs add this new file.steve1997-08-241-0/+40
|
* Try to avoid mounting filesystems multiple times. Also whilesteve1997-08-247-29/+99
| | | | | | | I'm here do some -Wall cleaning. PR: kern/1839 Reviewed and corrected by: joerg
OpenPOWER on IntegriCloud