summaryrefslogtreecommitdiffstats
path: root/sbin/swapon
Commit message (Collapse)AuthorAgeFilesLines
* Raise WARNS for various tools where possible.ed2010-01-171-1/+1
| | | | Submitted by: Marius Nünnerich <marius@nuenneri.ch>
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-0/+1
| | | | Submitted by: Ulrich Spörlein
* Add a -q flag to swapon(8) to suppress informational messages. Use it inmtm2008-06-232-9/+24
| | | | | rc.d. Note: errors are not affected by this flag.
* - Change the meaning of -h flag from giving the output in megabytes topjd2008-05-203-21/+67
| | | | | | | giving the output in a human-readable form. This behaviour is consistent with most of system tools. - Add -m and -g options to give output in megabytes and gigabytes respectively.
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-102-9/+5
|
* Sort sections.ru2005-01-181-10/+10
|
* Don't include sys/user.h merely for its side-effect of recursivelydas2004-11-271-1/+1
| | | | including other headers.
* Remove advertising clause from University of California Regent's license,markm2004-04-092-8/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)markm2004-03-051-1/+1
| | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64
* Use __FBSDID() to quiet GCC 3.3 warnings.obrien2003-05-031-4/+4
|
* Spell "utilities" correctly.keramida2003-02-281-1/+1
|
* More fixes.ru2003-02-251-6/+8
| | | | | Submitted by: Andy Farkas <andyf@speednet.com.au> Reviewed by: das
* mdoc(7) police: Tidy up.ru2003-02-241-40/+58
|
* Clarify about NSWAPDEV, add a DIAGNOSTICS section pointing todas2003-02-241-3/+8
| | | | | | swapon(2), and correct HISTORY. Reviewed by: mike (mentor)
* - Add a clearer error message for the case where swapon hits thedas2003-02-241-3/+9
| | | | | | | | | | | NSWAPDEV limit. - Don't warn about devices that are not in use in 'swapoff -a'. - Re-add behavior mistakenly removed in revision 1.44: If using 'swapon -a', do not warn if the device is already in use. PR: 46633 Submitted by: Andy Farkas <andyf@speednet.com.au> (in part) Reviewed by: mike (mentor)
* Remove hack from rev 1.15; getbsize(3)'s original interface has beenmike2002-12-301-3/+1
| | | | restored.
* Make the first argument to getbsize(3) a `size_t *'. This is a hackmike2002-12-301-3/+4
| | | | since getbsize(3) should have `int *' as its first parameter.
* Add 'swapctl' - as a hardlink to swapon/swapoff, and augment swapon withdillon2002-12-283-65/+257
| | | | | | | | | | | swapctl functionality. The idea is to create a swapctl command that is fairly close to the OpenBSD and NetBSD version. FreeBSD does not implement swap priority (and it would be a mistake if we did) so we didn't bother with that part of it. Submitted by: Eirik Nygaard <eirikn@bluezone.no> Augmented by: dillon (extensively) Reviewed by: David Schultz <dschultz@uclink.Berkeley.EDU>
* This is David Schultz's swapoff code which I am finally able to commit.dillon2002-12-153-26/+56
| | | | | | | This should be considered highly experimental for the moment. Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 3 weeks
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-211-1/+1
|
* The .Nm utility.charnier2002-07-061-3/+4
|
* o remove __Pimp2002-03-211-2/+2
| | | | o remove main prototype
* Remove 'register' keyword.obrien2002-03-201-2/+2
| | | | | | It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?)
* Default to WARNS=2.obrien2001-12-041-1/+0
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* Set WARNS=2 on programs which compile cleanly.dd2001-07-151-0/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Include missing header files which define functions for which gcc hasdd2001-06-241-0/+1
| | | | builtins (e.g., exit, strcmp).
* vnconfig(8) -> mdconfig(8).ru2001-04-101-8/+6
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Add include of errno.h where needed, remove extern int errno where not.imp2000-04-141-2/+0
| | | | These commits were inspired by a similar commit to netbsd.
* correct wording in BUGS section; it's not possible to dismount swapgsutter2000-02-281-2/+2
| | | | | | | devices, but it's certainly possible to make use of them. PR: 17013 Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>
* Mention /dev/vn0b and /dev/vntab. ascii -> ASCII transform hadnik1999-09-261-0/+4
| | | | | | | already happened in an earlier commit. PR: docs/13645 Submitted by: Stephen Roznowski <sjr@home.com>
* Correct spelling : ascii -> ASCIIphantom1999-09-201-1/+1
| | | | | | PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Refer to current names for swap partitions in the `FILES' section.jkoshy1999-05-171-3/+3
| | | | | PR: docs/11709 Submitted by: Matthew D. Fuller <fullermd@over-yonder.net>
* .Nm swapon -> .Nm.charnier1998-08-032-12/+11
| | | | Sort #includes. Add rcsid.
* Revert last commit and SEE ALSO pstat(8) instead.steve1998-02-011-2/+2
| | | | Submitted by: Bruce Evans
* SEE ALSO swapinfo(8).steve1998-01-251-1/+2
| | | | | PR: 5447 Submitted by: Craig Leres <leres@ee.lbl.gov>
* .Xr vnconfig 8. This was suggested by Dworkin Muller <dworkin@village.org>imp1997-08-261-2/+3
| | | | | when he tried to figure out how to swap to a file and had to ask me for help.
* Use warn(3).charnier1997-06-191-7/+8
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* add missing comma(s) in .Xr macroswosch1996-09-231-2/+3
|
* Make the noauto flag usable for swap devices too. Closes PR#1542jkh1996-09-062-1/+3
| | | | Submitted-By: David Leonard <d@scry.dstc.edu.au>
* Take out special error message for EINVAL...we really do want it to bedg1995-05-141-4/+0
| | | | "invalid argument".
* Fix -Wall warnings.phk1995-02-231-7/+11
| | | | Yes I have better things to do, but just now I'm waiting...
* fstab is in section 5, not section 8.jkh1995-02-171-1/+1
| | | | Obtained from: NetBSD
OpenPOWER on IntegriCloud