aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add noclusterr and noclusterw options. The noclusterr and noclusterwKATO Takenori1997-09-273-4/+18
| | | | | | | | | disable clustered read and write, respectively. Reviewed by: bde Notes: svn path=/head/; revision=29890
* Removed duplicate MOPT_FORCE and sorted the first one. Rev.1.5 andBruce Evans1997-08-251-3/+2
| | | | | | | Lite2 messed up the ordering differently. Notes: svn path=/head/; revision=28738
* Moved getmntops() stuff back to mntopt.h so that it is visible in otherBruce Evans1997-08-252-8/+5
| | | | | | | mount utilities. Notes: svn path=/head/; revision=28735
* Backed out previous commit - don't clobber the (normally equivalent)Bruce Evans1997-08-251-2/+1
| | | | | | | default for NOSHARED. Notes: svn path=/head/; revision=28734
* Forgot to cvs add this new file.Steve Price1997-08-241-0/+40
| | | | Notes: svn path=/head/; revision=28672
* Try to avoid mounting filesystems multiple times. Also whileSteve Price1997-08-247-29/+99
| | | | | | | | | | I'm here do some -Wall cleaning. PR: kern/1839 Reviewed and corrected by: joerg Notes: svn path=/head/; revision=28671
* Mention the various reasons for messages of the form:Joerg Wunsch1997-08-241-1/+17
| | | | | | | | | xxxxx filesystem is not available Inspired by: PR 3311, and a following discussion with Mikhail Notes: svn path=/head/; revision=28658
* Always include the section name in the .Xr macro and cleanupSteve Price1997-08-241-11/+14
| | | | | | | | | | .Nm macro usage. PR: docs/3940 Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp> Notes: svn path=/head/; revision=28644
* Fix parsing of mount options with '=' in their name.Mike Smith1997-04-301-1/+1
| | | | | | | | PR: bin/3027 Submitted by: Louis Mamakos <louie@TransSys.COM> Notes: svn path=/head/; revision=25301
* Change vfork to fork, too many memory-clobbering actions present in childAndrey A. Chernov1997-04-231-2/+2
| | | | Notes: svn path=/head/; revision=25120
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24359
* Finished (?) merging with Lite2: cleaned up #include mess; fixed mergingBruce Evans1997-03-121-62/+48
| | | | | | | | | | | | | errors (mis-sorted prototypes, duplicated MNT_NOATIME, duplicated NULL mntopts fixup). Updated getopt() usage. Fixed style bugs in FreeBSD changes (one or two per line for putfsent() stuff). Notes: svn path=/head/; revision=23805
* Merge from Lite2Peter Wemm1997-03-117-154/+147
| | | | | | | | | | - 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! Notes: svn path=/head/; revision=23678
* This commit was generated by cvs2svn to compensate for changes in r23412,Bruce Evans1997-03-051-0/+92
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=23413
| * Attempt to import Lite2's mount.Bruce Evans1997-03-058-0/+1355
| | | | Notes: svn path=/vendor/CSRG/dist/; revision=23412
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22990
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Add mount_msdos(8) referenceAndrey A. Chernov1996-11-101-1/+2
| | | | | | | 2.2 candidate Notes: svn path=/head/; revision=19592
* Added description of "noatime" option.David Greenman1996-09-081-1/+7
| | | | Notes: svn path=/head/; revision=18159
* Implemented user side of "noatime" mount option. This option disablesDavid Greenman1996-09-032-1/+4
| | | | | | | | | 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). Notes: svn path=/head/; revision=18007
* [HISTORY] command appeared in Version 1 AT&T UNIXWolfram Schneider1996-08-291-1/+2
| | | | | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41 Notes: svn path=/head/; revision=17891
* I have added a new option -p to the mount command. This wasJordan K. Hubbard1996-07-212-8/+73
| | | | | | | | | | | | | | | | | | | | | | | inspired by SunOS version of mount which uses option -p to indicate that the mount information should be printed in fstab format. This is a neat way to create a new fstab file to use later when one has modified the mount points or mount options or added or removed mount some mount points. You just type mount -p > /etc/fstab.new and there is your new fstab file ready to be used though you will of course have to add any necessary noauto flags manually. [Committers note: This also seems to do the wrong thing for AMD mounts, but in the more average case this is a nifty feature nonetheless and one can always edit the bogus entries out] Submitted-By: Jukka Ukkonen <jau@jau.csc.fi> Notes: svn path=/head/; revision=17243
* Document that suid wrapper like suidperl(1) break option 'nosuid'.Wolfram Schneider1996-07-021-0/+4
| | | | Notes: svn path=/head/; revision=16924
* Change the messages slightly when there is no "mount_type" executableSatoshi Asami1996-03-151-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | found when the user specifies "mount -t type". Instead of printing out one message for each path element (/sbin, /usr/sbin), it prints out: mount: exec mount_type not found in /sbin, /usr/sbin: No such file or directory The code is quite long for such a stupid little piece of aesthesism but it is very straghtforward so I guess it's ok. Besides, I don't want to do a "char foo[100];" and have malloc break down when someone decides to add a few more paths to a variable that's far apart from this code. :) By the way, there is no malloc() off-by-one error for the '\0' at the end of the string although I don't explicitly add 1 to the length. The code allocates strlen(path element)+2 bytes for each path element, and doesn't use the last two bytes (for the delimiting ", "). Reviewed by: the list (I hope) Notes: svn path=/head/; revision=14626
* Backout my changes to disallow "mount /mnt /mnt" until I can verifyMike Pritchard1996-03-111-22/+0
| | | | | | | | that nfs mounts work again (I locked up my home machine testing it and can't see what happened until I get home from work tonight). Notes: svn path=/head/; revision=14566
* Only restrict the user from doing something like "mount /mnt /mnt"Mike Pritchard1996-03-111-4/+7
| | | | | | | | for file system types that actually cause a panic (ufs, msdos, cd9660). This makes /proc mountable again. Notes: svn path=/head/; revision=14474
* Do not allow the caller to specify the same path for the specialMike Pritchard1996-03-101-0/+19
| | | | | | | | | | | | | | | | device file and the mount point. This prevents the "unexpected recursive lock" panic from happening. This is a temporary fix. A kernel fix would be much much more ugly than this, and still wouldn't be the "right" way to fix it. After some of Terry's file system rework is installed, it will be possible to properly fix this problem in a clean manner. Until then, this change should prevent use from getting a problem report on this every month or so (and I just noticed that someone in one of the freebsd news groups was complaining about this problem, too). Notes: svn path=/head/; revision=14445
* Close PR#17. This may be a contraversal fix in that now mount willJordan K. Hubbard1996-03-031-5/+1
| | | | | | | | | | | | | | | | | spit out two error lines for a bogus filesystem type, e.g: root@time-> mount -t foo /dev/sd0a /mnt mount: exec /sbin/mount_foo for /mnt: No such file or directory mount: exec /usr/sbin/mount_foo for /mnt: No such file or directory But I would submit that if you're even going to scan multiple directories for a mount_foo (which I actually think is somewhat bogus - if it's not in /sbin, you're probably in big trouble anyway), you should emit an error for each one. I got multiple complaints (in addition to the PR) that the existing behavior was very confusing. Notes: svn path=/head/; revision=14350
* Another round of various man page cleanups.Mike Pritchard1996-02-091-1/+0
| | | | Notes: svn path=/head/; revision=14004
* Document the -a option, and mention ``noauto''.David Greenman1995-08-261-0/+5
| | | | Notes: svn path=/head/; revision=10291
* The changes for adding the "noauto" option were mostly wrong. MNT_NOAUTODavid Greenman1995-08-263-11/+5
| | | | | | | | is a kernel flag, and the kernel definately doesn't need to know about it. Notes: svn path=/head/; revision=10288
* Sigh. This isn't my night. I forgot the manpage updates too!Jordan K. Hubbard1995-08-231-0/+5
| | | | | | | Thanks, Andrey. Notes: svn path=/head/; revision=10202
* Add a "noauto" flag so that you can do things like prevent your systemJordan K. Hubbard1995-08-232-3/+8
| | | | | | | | | 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> Notes: svn path=/head/; revision=10199
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8871
* Fixed incompleteness that would allow dirty filesystems to get mountedDavid Greenman1995-05-151-2/+5
| | | | | | | | | | | | when the single user shell was terminated. These changes disallow mounting or R/W upgrading filesystems that are dirty unless "-f" (force) option is used with mount. /etc/rc has been modified to abort the startup if one or more non-nfs partitions fail to mount. Reviewed by: Poul-Henning Kamp, Rod Grimes Notes: svn path=/head/; revision=8530
* Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptableDavid Greenman1995-05-122-1/+2
| | | | | | | options for UFS (which fixes another bug). Notes: svn path=/head/; revision=8487
* Fix another bogon in the change before the last.Bruce Evans1995-02-161-1/+1
| | | | Notes: svn path=/head/; revision=6491