summaryrefslogtreecommitdiff
path: root/sbin/mount_ffs
AgeCommit message (Collapse)Author
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
2020-04-23 ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;Jason McIntyre
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
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.
2016-10-06fix HISTORY:Ingo Schwarze
NetBSD 1.0A was not a release, but it was what would be called NetBSD 1.0-current in OpenBSD terminology, see http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/conf/newvers.sh#rev1.17 patch from Sevan Janiyan <venture37 at geeklan dot co dot uk>
2016-09-10Add a noperm mount flag for FFS to be used for building release setsMartin Natano
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
2016-05-27W^X violations are no longer permitted by default. A kernel log messageTheo de Raadt
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
2015-12-08spaces to tabsTed Unangst
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2010-10-13paste in the description of "special"; ok krwJason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2007-05-31convert to new .Dd format;Jason McIntyre
2006-08-11Give a less cryptic error message when trying to mount invalid filePedro Martelletto
systems, okay thib@ ian@ millert@ beck@
2005-04-08Sync with recent realpath(3) changes: on failure, don't use the secondJared Yanovich
argument "resolved", since it is undefined. ok and help millert, otto
2003-07-03use realpath() in helpers instead of doing it ourselves every time.Ted Unangst
also fixes pr1662. from otto moerbeek
2003-07-03add documentation from mount(8) that "special" device must correspondJason McIntyre
to a partition in the disklabel. suggested by Phil Pennock. ok krw@ millert@
2003-06-11ansificationTheo de Raadt
2003-06-10o make mount(2) return EROFS, not EPERM if ffs is dirtyTodd C. Miller
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
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-10filesystem -> file system for a little consistencyTed Unangst
ok jmc@ millert@
2002-06-26Missing .Xr's from Margarida Sequeira <niness@devilness.org>.Federico G. Schwindt
Remove unmount(2) per millert suggestion; millert@ ok.
2002-04-23In mount.h, rename field export -> export_info, to avoid collision with C++.Marc Espie
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...
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-06-08Fix a typo (perfomance -> performance) and lots of section shuffling;Aaron Campbell
mpech@prosoft.org.lv
2001-04-04Add "softdep" option to mount. Update from rw/async to softdepGrigoriy Orlov
and otherwise are disabled. art@ ok.
2001-01-10mount_ufs was not needed for a long time..Theo de Raadt
2000-10-10mount -t is the preferred way to invokeMarco S Hyman
2000-06-17Support the -f flag in order to mount dirty filesystems. This makes senseNiklas Hallqvist
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!
2000-03-18Remove hard sentence breaks, and some other cleanup along the way.Aaron Campbell
2000-01-22remove extra externs not needed because of unistd.h (rest of tree will be ↵Theo de Raadt
done later.. contact me if you want to help)
1999-07-21use .Ar on later .It Fl linesTheo de Raadt
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-11-28kill redundant .Nm macro arguments; other misc fixesAaron Campbell
1997-09-21$OpenBSD$Theo de Raadt
1997-08-20Fix pasto.Todd C. Miller
1997-08-20Print "Filesystem not supported by kernel" not "Operation not supported byTodd C. Miller
device" (EOPNOTSUPP) so the real problem is obvious. Idea from Peter Seebach <seebs@taniemarie.solon.com>.
1997-06-20Now that mount(2) sets errno to EFTYPE, not EINVAL for "invalid file system"kstailey
we can use NLS for the text, not a hardcode English message.
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-06-23update rcsidTheo de Raadt
1996-04-21sync to netbsd 960418Theo de Raadt
1996-02-22From NetBSD:Niklas Hallqvist
Removed extraneous text; From Mike Long <mike.long@analog.com>
1995-11-06complete ufs -> ffs change (From John Kohl; PR #1403)Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt