Up to [cvs.NetBSD.org] / src / sbin / swapctl
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.39 / (download) - annotate - [select for diffs], Tue Jan 1 19:01:10 2013 UTC (4 months, 2 weeks ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
tls-maxphys-nbase,
tls-maxphys-base,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.38: +3 -2
lines
Diff to previous 1.38 (colored)
Explicitly include sys/ioctl.h
Revision 1.38 / (download) - annotate - [select for diffs], Wed Dec 26 10:15:28 2012 UTC (4 months, 3 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.37: +39 -13
lines
Diff to previous 1.37 (colored)
Allow named wedges to be used on command line, also fix name lookup for the dump device.
Revision 1.37 / (download) - annotate - [select for diffs], Sat Apr 7 04:52:20 2012 UTC (13 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4
Branch point for: tls-maxphys
Changes since 1.36: +18 -13
lines
Diff to previous 1.36 (colored)
use getfsspecname()
Revision 1.36 / (download) - annotate - [select for diffs], Sat Aug 27 18:57:50 2011 UTC (20 months, 3 weeks ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.35: +15 -15
lines
Diff to previous 1.35 (colored)
static + __dead
Revision 1.35 / (download) - annotate - [select for diffs], Thu Sep 24 16:15:20 2009 UTC (3 years, 7 months ago) by apb
Branch: MAIN
CVS Tags: matt-premerge-20091211,
matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Changes since 1.34: +22 -6
lines
Diff to previous 1.34 (colored)
Make the exit status from "swapctl -A" and "swapctl -U" tri-state: 0 for success; 1 for error; and 2 when no devices of the appropriate type are defined in fstab(5). Previously, "no apropriate devices" was indistinguishable from "error".
Revision 1.34 / (download) - annotate - [select for diffs], Sun Dec 28 20:18:53 2008 UTC (4 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend
Changes since 1.33: +5 -3
lines
Diff to previous 1.33 (colored)
fix dev_t format.
Revision 1.33 / (download) - annotate - [select for diffs], Thu May 29 14:51:25 2008 UTC (4 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pf42-base4,
yamt-pf42-base3,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2
Changes since 1.32: +2 -4
lines
Diff to previous 1.32 (colored)
remove clause #3 from my license where there are no other copyright holders involved.
Revision 1.32 / (download) - annotate - [select for diffs], Sun Aug 27 21:07:39 2006 UTC (6 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base2,
yamt-pf42-base,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
mjf-devfs-base,
mjf-devfs,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: yamt-pf42,
wrstuden-revivesa,
mjf-devfs2
Changes since 1.31: +245 -18
lines
Diff to previous 1.31 (colored)
As discussed on tech-userlevel: enhance the -A/-U commands to take a -t auto flag, which queries all local harddisks for swap partitions/ wedges and adds/removes them as swap device, a -f option to use the first found swap device as dump device, and a -o option to only auto-configure the dump device, but leave swap alone. Add a -n option to make swapctl only say what it would do, but not change any system state.
Revision 1.31 / (download) - annotate - [select for diffs], Wed Aug 23 20:59:09 2006 UTC (6 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.30: +4 -4
lines
Diff to previous 1.30 (colored)
Sort options. Sync usage with man page.
Revision 1.30 / (download) - annotate - [select for diffs], Tue Aug 22 14:08:36 2006 UTC (6 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.29: +27 -19
lines
Diff to previous 1.29 (colored)
Allow unsetting the dump device via "swapctl -D none". For -l (list swap partitions) and -z (list dump device) return a usefull error status, so scripts can easily decide if swap or dump are configured.
Revision 1.29 / (download) - annotate - [select for diffs], Sun Jun 12 16:24:20 2005 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.28: +10 -10
lines
Diff to previous 1.28 (colored)
Remove some const. This is better than using __UNCONST at the second argument of swapctl.
Revision 1.28 / (download) - annotate - [select for diffs], Wed Feb 9 05:51:38 2005 UTC (8 years, 3 months ago) by xtraeme
Branch: MAIN
CVS Tags: netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3
Changes since 1.27: +23 -34
lines
Diff to previous 1.27 (colored)
Kill __P(), use ANSI function declarations, constify; WARNS=3. Reviewed by mrg@.
Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 10 20:53:48 2005 UTC (8 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.26: +9 -2
lines
Diff to previous 1.26 (colored)
support RESCUEDIR (for mount_nfs and umount)
Revision 1.26 / (download) - annotate - [select for diffs], Tue Jun 8 08:13:16 2004 UTC (8 years, 11 months ago) by cjep
Branch: MAIN
Changes since 1.25: +3 -2
lines
Diff to previous 1.25 (colored)
Fix usage string (i.e. add information about -z). Fixes PR#25865 from Kouichirou Hiratsuka.
Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 20 13:31:43 2003 UTC (9 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.24: +19 -7
lines
Diff to previous 1.24 (colored)
support "-g" and "-m" as well as "-k" and "-h". swapctl & swaplist code from Martin Weber, adapted for pstat by myself.
Revision 1.24 / (download) - annotate - [select for diffs], Sat Dec 20 11:22:25 2003 UTC (9 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.23: +14 -6
lines
Diff to previous 1.23 (colored)
add a "-h" (humanize_number(3)) option to swapctl(8) and pstat(8), from Martin Weber in PR#23805. ps: now we only need someone to do ls(1) :-)
Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 21 02:32:54 2003 UTC (9 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.22: +4 -4
lines
Diff to previous 1.22 (colored)
The 3rd argument to swapctl() is an int, don't pass NULL in it.
Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 23 11:53:44 2003 UTC (9 years, 11 months ago) by agc
Branch: MAIN
Changes since 1.21: +7 -1
lines
Diff to previous 1.21 (colored)
Add NetBSD RCS Ids.
Revision 1.21 / (download) - annotate - [select for diffs], Wed Sep 18 10:18:17 2002 UTC (10 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.20: +3 -1
lines
Diff to previous 1.20 (colored)
print something sensible on -z if no dump device is set
Revision 1.20 / (download) - annotate - [select for diffs], Fri Jun 21 09:04:16 2002 UTC (10 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.19: +6 -1
lines
Diff to previous 1.19 (colored)
Support 'dp' as mount option for 'sw' fstype, so it DTRT for entries like: /dev/wd0b none swap sw,dp 0 0
Revision 1.19 / (download) - annotate - [select for diffs], Mon Nov 26 15:23:38 2001 UTC (11 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Changes since 1.18: +3 -3
lines
Diff to previous 1.18 (colored)
Add word "WARNING" when complaining about swap being world-read/writeable to clarify that this was not an error condition and that swap was indeed added despite the problem.
Revision 1.18 / (download) - annotate - [select for diffs], Mon Feb 19 22:56:23 2001 UTC (12 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.17: +16 -17
lines
Diff to previous 1.17 (colored)
convert to use getprogname()
Revision 1.17 / (download) - annotate - [select for diffs], Fri Nov 17 12:35:09 2000 UTC (12 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.16: +2 -2
lines
Diff to previous 1.16 (colored)
fix incorrect comment; -d does work!
Revision 1.16 / (download) - annotate - [select for diffs], Fri Nov 17 11:43:41 2000 UTC (12 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.15: +33 -4
lines
Diff to previous 1.15 (colored)
support new `swapctl -z' that shows the dump device.
Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 7 12:29:10 2000 UTC (12 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.14: +2 -2
lines
Diff to previous 1.14 (colored)
warnx?/errx? audit. don't pass variable/function return value alone. use with "%s". from openbsd.
Revision 1.14 / (download) - annotate - [select for diffs], Thu Apr 13 08:29:56 2000 UTC (13 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-5-base,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.13: +2 -3
lines
Diff to previous 1.13 (colored)
use <sys/swap.h>. should have happened years ago.
Revision 1.13 / (download) - annotate - [select for diffs], Mon Mar 13 22:59:22 2000 UTC (13 years, 2 months ago) by soren
Branch: MAIN
Changes since 1.12: +2 -2
lines
Diff to previous 1.12 (colored)
Fix doubled 'the's.
Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 5 11:35:22 2000 UTC (13 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.11: +93 -50
lines
Diff to previous 1.11 (colored)
* add support for -U, which is the opposite of -A (i.e, it unconfigures all swap devices in /etc/fstab). * fix description of -D
Revision 1.11 / (download) - annotate - [select for diffs], Mon Apr 26 01:02:25 1999 UTC (14 years ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
comdex-fall-1999-base,
comdex-fall-1999
Changes since 1.10: +7 -6
lines
Diff to previous 1.10 (colored)
add a -D line to usage().
Revision 1.10 / (download) - annotate - [select for diffs], Tue Feb 23 17:00:53 1999 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4
Changes since 1.9: +55 -17
lines
Diff to previous 1.9 (colored)
add a new fstab type "dp" for the user-specified dump device. change swapctl -A to see this and add it via swapctl(2). also add a new swapctl -D <device> to change the dump device on the fly.
Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 26 20:23:15 1998 UTC (14 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +4 -4
lines
Diff to previous 1.8 (colored)
const poisoning.
Revision 1.8 / (download) - annotate - [select for diffs], Tue Feb 10 03:14:33 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.7: +7 -2
lines
Diff to previous 1.7 (colored)
make swapctl exit with non-zero if -A and nothing swapped on
Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 10 05:39:53 1997 UTC (15 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3
Changes since 1.6: +2 -6
lines
Diff to previous 1.6 (colored)
remove advertising clause from all my licenses.
Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 15 11:22:00 1997 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.5: +2 -1
lines
Diff to previous 1.5 (colored)
* fix .Nm usage * prototype main() for WARNS=1
Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 11 03:36:27 1997 UTC (15 years, 10 months ago) by mikel
Branch: MAIN
Changes since 1.4: +4 -4
lines
Diff to previous 1.4 (colored)
add comparisons to NULL implicit in my last changes
Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 25 23:18:11 1997 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +72 -6
lines
Diff to previous 1.3 (colored)
Add a "-t blk|noblk" device type option to swapctl -A. This allows the user to specify "only add block devices" or "only add non-block devices". This is useful during early system startup where swapping may be needed before swap files are available (e.g. if fsck'ing large file systems).
Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 24 05:22:38 1997 UTC (15 years, 11 months ago) by mikel
Branch: MAIN
Changes since 1.2: +6 -5
lines
Diff to previous 1.2 (colored)
include <err.h> for err*() and warn*() prototypes
cast long to int for use by printf("%d",..)
add parens for gcc -Wall
Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 15 03:47:53 1997 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +176 -90
lines
Diff to previous 1.1 (colored)
Totally rework the command parsing, eliminating a few walk-offs of bogus pointers, etc.
Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 12 13:14:11 1997 UTC (15 years, 11 months ago) by mrg
Branch: MAIN
Initial revision