aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mount_ufs.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove UFS-specific parts from mount(8).Craig Rodrigues2005-11-231-133/+0
| | | | | | | | For mounting UFS, all mount options are passed directly to nmount(), without any UFS-specific logic. Notes: svn path=/head/; revision=152738
* - Minor fixes to raise WARNS level to 6.Craig Rodrigues2005-11-121-1/+1
| | | | | | | | | | | | | | | | | - Teach the mount program to call the nmount() syscall directly - Preserve existing method of calling mount() for UFS, until we clean things up. - Preserve existing method of forking and calling external mount programs for mfs, msdosfs, nfs, nfs4, ntfs, nwfs, nullfs, portalfs, reiserfs, smbfs, udf, umapfs, unionfs - devfs, linprocfs, procfs, ext2fs call nmount() syscall directly, since that is all those external mount programs were doing Reviewed by: phk Discussed on: arch Notes: svn path=/head/; revision=152344
* Switch from K&R-style C prototypes to ISO/ANSI-style C prototypes.Craig Rodrigues2005-10-071-3/+1
| | | | | | | Make prototype in extern.h match prototype in mount_ufs.c Notes: svn path=/head/; revision=151042
* Use MOPT_END in favor of MOPT_NULL, which better describes the purporseXin LI2005-06-101-1/+1
| | | | | | | of the macro. Notes: svn path=/head/; revision=147242
* Add a handy macro to represent null mount option, MOPT_NULL, and makeXin LI2005-06-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | use of the macro in sbin/mount*'s, by replacing: mopts[] = { MOPT_STDOPTS, { NULL } } With: mopts[] = { MOPT_STDOPTS, MOPT_NULL } This change will help to reduce the situation that we don't explicitly initialize "struct mntopt"'s. It should not contribute to any functional/logical changes as far as I can tell. Notes: svn path=/head/; revision=146853
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Now that the kernel is able to load modules itself,Maxime Henrion2002-08-031-17/+1
| | | | | | | | | | | | | remove all the code which was trying to do so. This code was nasty in several ways, it was hiding the kernel bug where the kernel was unable to properly load a module, and it was quitting if it wasn't able to load the module. The consequence is that an ABI breakage of the vfsconf API would have broken *every* mount utility. Notes: svn path=/head/; revision=101270
* o __P removedWarner Losh2002-03-211-1/+1
| | | | | | | o main prototype removed Notes: svn path=/head/; revision=92882
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | builtins (e.g., exit, strcmp). Notes: svn path=/head/; revision=78732
* Always print out the target device when the mount fails, not just onBrian S. Dean2001-01-251-4/+1
| | | | | | | ENOENT. Notes: svn path=/head/; revision=71651
* Provide a better error message when the /dev entry is non-existant.Brian S. Dean2001-01-251-0/+3
| | | | | | | | Due to the old message, I spent way more time debugging a diskless root problem than it should have taken. Notes: svn path=/head/; revision=71645
* 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-061-0/+1
| | | | Notes: svn path=/head/; revision=62664
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Removed ROOTSLICE_HUNT. The root device is now found better byBruce Evans1999-01-091-34/+2
| | | | | | | | | | 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
* Remove unused #includes. Spelling. Add rcsid. Do not dot terminate err()Philippe Charnier1998-07-061-13/+11
| | | | | | | strings. Notes: svn path=/head/; revision=37425
* 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-081-2/+34
| | | | | | | | | | | | | | | | | 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
* 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
* Try to avoid mounting filesystems multiple times. Also whileSteve Price1997-08-241-3/+9
| | | | | | | | | | I'm here do some -Wall cleaning. PR: kern/1839 Reviewed and corrected by: joerg Notes: svn path=/head/; revision=28671
* 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
* Merge from Lite2Peter Wemm1997-03-111-16/+18
| | | | | | | | | | - 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
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8871
* Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptableDavid Greenman1995-05-121-0/+1
| | | | | | | options for UFS (which fixes another bug). Notes: svn path=/head/; revision=8487
* Add support for filesystem-specific `-o' options, and re-implement theGarrett Wollman1994-11-011-1/+1
| | | | | | | | | | | | | | | | | | | most common cd9660 and nfs options like God intended them. (It is now possible to say mount -o ro,soft,bg,intr there:/foo/bar /foo/bar again.) This whole getmntopt() business is an incredible botch; it never should have been anything more than a wrapper around getsubopt(3). Because if the way the current hackaround is implemented, options which take arguments (like the old `rsize' and `wsize') are still unavailable, and must be accessed the new, broken way. (It's unimaginable how Berkeley managed to screw up one of the few things about NFS that Sun actually got right to begin with!) Notes: svn path=/head/; revision=4065
* Add code to skip "userquota"/"groupquota" options needed forAndrey A. Chernov1994-09-291-0/+2
| | | | | | | quotaon/quotacheck Notes: svn path=/head/; revision=3202
* Use getvfs* functions to map between VFS types and names.Garrett Wollman1994-09-221-1/+16
| | | | | | | | Automatically load UFS if it is not present but is loadable. (This won't happen now, but could happen if we fix NFS diskless support.) Notes: svn path=/head/; revision=2968
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-261-0/+131
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558