summaryrefslogtreecommitdiffstats
path: root/sbin/mount_ffs/mount_ffs.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Add a noperm mount flag for FFS to be used for building release setsnatano2016-09-101-1/+5
| | | | | | | | | without root privileges. This is only the kernel/mount flag; additional work in the build Makefile's will be necessary such that the files in $DESTDIR are created with correct permissions. tedu couldn't find anything wrong with it in a quick review idea & ok deraadt
* W^X violations are no longer permitted by default. A kernel log messagederaadt2016-05-271-1/+2
| | | | | | | | | | | | | | | | is generated, and mprotect/mmap return ENOTSUP. If the sysctl(8) flag kern.wxabort is set then a SIGABRT occurs instead, for gdb use or coredump creation. W^X violating programs can be permitted on a ffs/nfs filesystem-basis, using the "wxallowed" mount option. One day far in the future upstream software developers will understand that W^X violations are a tremendously risky practice and that style of programming will be banished outright. Until then, we recommend most users need to use the wxallowed option on their /usr/local filesystem. At least your other filesystems don't permit such programs. ok jca kettenis mlarkin natano
* spaces to tabstedu2015-12-081-2/+2
|
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+4
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-15/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* Give a less cryptic error message when trying to mount invalid filepedro2006-08-111-6/+2
| | | | systems, okay thib@ ian@ millert@ beck@
* Sync with recent realpath(3) changes: on failure, don't use the secondjaredy2005-04-081-3/+3
| | | | | | argument "resolved", since it is undefined. ok and help millert, otto
* use realpath() in helpers instead of doing it ourselves every time.tedu2003-07-031-4/+5
| | | | also fixes pr1662. from otto moerbeek
* ansificationderaadt2003-06-111-6/+4
|
* o make mount(2) return EROFS, not EPERM if ffs is dirtymillert2003-06-101-2/+6
| | | | | | o document EROFS in man page (2 possible causes) o recognize EROFS in mount_ffs and try to give a reasonable error message deraadt@ OK
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* In mount.h, rename field export -> export_info, to avoid collision with C++.espie2002-04-231-5/+5
| | | | | | | | | | | Synch files that use that field. (This argument is an internal interface specific to OpenBSD, so it won't cause compatibility problems.) (No bump, not an ABI change). ok art, millert...
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* Add "softdep" option to mount. Update from rw/async to softdepgluk2001-04-041-2/+3
| | | | | | and otherwise are disabled. art@ ok.
* Support the -f flag in order to mount dirty filesystems. This makes senseniklas2000-06-171-2/+3
| | | | | | | with soft-updates, but will leak free blocks. On non-softupdates filesystems this option is strongly unrecommended. It also allows downgrades to readonly by revoking files opened for writing. If the filesystem have mmap'ed files writeable this is dangerous. Thus, we do *not* recommend its use!
* remove extra externs not needed because of unistd.h (rest of tree will be done later.. contact me if you want to help)deraadt2000-01-221-3/+2
|
* Fix pasto.millert1997-08-201-3/+3
|
* Print "Filesystem not supported by kernel" not "Operation not supported bymillert1997-08-201-2/+5
| | | | | device" (EOPNOTSUPP) so the real problem is obvious. Idea from Peter Seebach <seebs@taniemarie.solon.com>.
* Now that mount(2) sets errno to EFTYPE, not EINVAL for "invalid file system"kstailey1997-06-201-6/+3
| | | | we can use NLS for the text, not a hardcode English message.
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* update rcsidderaadt1996-06-231-1/+2
|
* sync to netbsd 960418deraadt1996-04-211-3/+3
|
* complete ufs -> ffs change (From John Kohl; PR #1403)deraadt1995-11-061-3/+3
|
* initial import of NetBSD treederaadt1995-10-181-0/+136