aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_ifs
Commit message (Collapse)AuthorAgeFilesLines
* Remove IFS from 5.0-CURRENT. This facilitates introducing UFS2 asRobert Watson2002-05-194-766/+0
| | | | | | | | | | | IFS had its fingers deep in the belly of the UFS/FFS split. IFS will be reimplemented by the maintainer at a later date once the UFS implementation is in place. Requested by: adrian (maintainer) Notes: svn path=/head/; revision=96884
* more file system > filesystemTom Rhodes2002-05-161-1/+1
| | | | Notes: svn path=/head/; revision=96707
* o __P removedWarner Losh2002-03-213-16/+16
| | | | | | | o main prototype removed Notes: svn path=/head/; revision=92882
* Default to WARNS=2.David E. O'Brien2001-12-041-0/+2
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* Nuke unused variables.Dima Dorfman2001-06-241-7/+0
| | | | Notes: svn path=/head/; revision=78735
* Include missing header files whicih define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | builtints (e.g., exit, strcmp). Notes: svn path=/head/; revision=78734
* Removed unused copy of ../mount/getmtopts.3.Bruce Evans2001-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. Notes: svn path=/head/; revision=71147
* Removed unused rotting copy of ../mount/mount.8. It should never haveBruce Evans2001-01-171-385/+0
| | | | | | | been repo-copied. Notes: svn path=/head/; revision=71146
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-1/+1
| | | | Notes: svn path=/head/; revision=71099
* Retire kernfs (userland part).Dag-Erling Smørgrav2000-12-281-1/+0
| | | | Notes: svn path=/head/; revision=70427
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-181-0/+1
| | | | Notes: svn path=/head/; revision=70152
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-202-8/+8
| | | | Notes: svn path=/head/; revision=68960
* Pre-IFS commit. Commit IFS-aware fsck and mount utilities.Adrian Chadd2000-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. Notes: svn path=/head/; revision=67105
* Explain the notion that additional mount options may be describedSheldon Hearn2000-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 Notes: svn path=/head/; revision=65155
* Only print information about reads and writes when the -v flag (forSheldon Hearn2000-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> Notes: svn path=/head/; revision=65023
* optreset is declared in unistd.h now.Warner Losh2000-08-161-1/+0
| | | | Notes: svn path=/head/; revision=64696
* Add the snapshot option to mount_ufs.Kirk McKusick2000-07-062-0/+2
| | | | Notes: svn path=/head/; revision=62664
* Removed xref to mount_lfs, this died in 2.mumble.Nik Clayton2000-04-301-1/+0
| | | | | | | | PR: docs/18272 Submitted by: Michael Lucas <mwlucas@blackhelicopters.org> Notes: svn path=/head/; revision=59801
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-6/+12
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57668
* Don't scare the users.Alfred Perlstein2000-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 Notes: svn path=/head/; revision=57384
* This is another in Martin Blapp's N-series of mount-related cleanups :)Brian Feldman2000-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> Notes: svn path=/head/; revision=56038
* Fix tab completion mounts (like /cdrom/)Eivind Eklund1999-12-261-0/+1
| | | | | | | Submitted by: Martin Blapp <mb@imp.ch> Notes: svn path=/head/; revision=55118
* Print out the filesystem read counts now collected by the kernel.Kirk McKusick1999-12-011-0/+3
| | | | | | | | Submitted by: Craig A Soules <soules+@andrew.cmu.edu> Reviewed by: Kirk McKusick <mckusick@mckusick.com> Notes: svn path=/head/; revision=53976
* Fix a few things:Brian Feldman1999-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> Notes: svn path=/head/; revision=52678
* Let a file with '@' or ':' in it take precedence over defaulting toBrian Feldman1999-10-101-2/+4
| | | | | | | nfs. Notes: svn path=/head/; revision=52095
* mount* fixes from Martin Blapp <mb@imp.ch>:Poul-Henning Kamp1999-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 Notes: svn path=/head/; revision=52055
* - Fixed some cases in which mount was segfaulting.Nick 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> Notes: svn path=/head/; revision=52036
* Document the "noasync" option.David E. O'Brien1999-09-281-0/+3
| | | | Notes: svn path=/head/; revision=51763
* $Id$ -> $FreeBSD$Peter Wemm1999-08-289-9/+9
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$ to these manpages.Nik Clayton1999-07-121-0/+1
| | | | | | | Approved by: bde Notes: svn path=/head/; revision=48790
* Null commit.Joseph Koshy1999-05-072-2/+2
| | | | | | | | | | > PR: bin/6399 > Submitted by: David Malone <dwmalone@maths.tcd.ie> Also reviewed by: bde Notes: svn path=/head/; revision=46620
* 1. Enhanced syntax for mount(8). The -o option now supports two 'meta'Joseph Koshy1999-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> Notes: svn path=/head/; revision=46619
* modload -> kldload and add ref to kldload(8) in See Also section.Guy Helmer1999-04-081-2/+3
| | | | | | | Submitted by: Nathan Ahlstrom <nrahlstr@winternet.com> Notes: svn path=/head/; revision=45476
* Fixed `mount -a -u ...'. Rev.1.19 broke this by trying too hard toBruce Evans1999-03-161-2/+3
| | | | | | | | | | avoid mounting filesystems multiple times. PR: 10572 Submitted by: Cy Schubert <cy@cschuber.net.gov.bc.ca> Notes: svn path=/head/; revision=44811
* Removed ROOTSLICE_HUNT. The root device is now found better byBruce Evans1999-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*.) Notes: svn path=/head/; revision=42438
* Warn about "mount -u" bug.Dag-Erling Smørgrav1998-10-161-1/+5
| | | | Notes: svn path=/head/; revision=40422
* Add a CAVEAT section documenting the minimum permissions required for a mountJoseph Koshy1998-07-091-1/+8
| | | | | | | | | point to be traversable in both directions by all users. PR: 7172 Notes: svn path=/head/; revision=37526
* Remove unused #includes. Spelling. Add rcsid. Do not dot terminate err()Philippe Charnier1998-07-066-49/+36
| | | | | | | strings. Notes: svn path=/head/; revision=37425
* Print the write counts if they are nonzero even if we're mountedBruce Evans1998-06-081-4/+3
| | | | | | | | | readonly, since they tell us about previous write activity. Use the correct format to print the write counts. Notes: svn path=/head/; revision=36772
* Remove extraneous ")" from output.Dmitrij Tejblum1998-05-171-2/+2
| | | | Notes: svn path=/head/; revision=36134
* New mount option nosymfollow. If enabled, the kernel lookup()Wolfram Schneider1998-04-083-3/+11
| | | | | | | | function will not follow symbolic links on the mounted file system and return EACCES (Permission denied). Notes: svn path=/head/; revision=35105
* Don't print the 'writes: sync & async' stuff if we're mounted readonlyPeter Wemm1998-03-271-3/+6
| | | | | | | or if the fs isn't keeping the stats.. Notes: svn path=/head/; revision=34910
* Fix a type mismatch between a scanf format string and theJohn Polstra1998-03-081-3/+3
| | | | | | | corresponding argument. Notes: svn path=/head/; revision=34333
* Make this compile again.Steve Price1998-03-081-3/+3
| | | | | | | | PR: 5948 Submitted by: Brian Feldman Notes: svn path=/head/; revision=34322
* If we are mounting the root filesystem, and we're accessing it throughMike Smith1998-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 Notes: svn path=/head/; revision=34304
* Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)Julian Elischer1998-03-081-2/+6
| | | | | | | | Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree Notes: svn path=/head/; revision=34266
* Converted putfsent() to Lite2 mount interface - don't use numericBruce Evans1998-02-131-2/+2
| | | | | | | filesystem types. Notes: svn path=/head/; revision=33304
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowBruce Evans1998-01-201-2/+1
| | | | | | | the default. Notes: svn path=/head/; revision=32645
* Add mount_devfs(8) to the SEE ALSO section.Steve Price1997-12-011-1/+2
| | | | | | | PR: 5125 Notes: svn path=/head/; revision=31468
* Reviewed by: hackers@freebsd.org in generalJulian Elischer1997-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. Notes: svn path=/head/; revision=31144