mrg
90bc324a8d
use <sys/swap.h>. should have happened years ago.
2000-04-13 08:29:56 +00:00
soren
89c5a767f8
Fix doubled 'the's.
2000-03-13 22:55:05 +00:00
lukem
655afb7cd6
* add support for -U, which is the opposite of -A (i.e, it unconfigures
...
all swap devices in /etc/fstab).
* fix description of -D
2000-03-05 11:35:22 +00:00
ad
902637d2e4
swapctl(SWAP_OFF, ...) now works.
2000-01-13 12:11:30 +00:00
mrg
ae3b9e217c
add a -D line to usage().
1999-04-26 01:02:25 +00:00
mrg
bdadd56346
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.
1999-02-23 17:00:53 +00:00
mrg
3e9d54f492
print the strerror if swapctl fails.
1998-10-08 10:00:31 +00:00
mrg
3d6db0aca3
<vm/vm_swap.h> -> <sys/swap.h>
1998-08-29 17:03:35 +00:00
mrg
b5f69ff667
add a `char se_path[PATH_MAX]' member to struct swapent, that
...
the pathname of the swap device is saved into. add a char *swd_path
member to struct swapdev, that contains a copy of the pathname
(using malloc(9)). rename swapctl(2)'s SWAP_STATS to SWAP_OSTATS,
and add a new SWAP_STATS command (number). make swapctl(SWAP_STATS,
...) [new version] copy the path out. if COMPAT_13, also include
support for SWAP_OSTATS. also fix a minor bug in swapctl(2).
the point of this is that swapfiles are now shown in `swapctl -l'.
1998-08-29 13:27:50 +00:00
mycroft
0e3ffd8405
const poisoning.
1998-07-26 20:23:15 +00:00
ross
8fe1f9c56a
Fix this to correctly do swapctl -l for regions > 2^31 bytes.
...
We include <inttypes.h> in case at some point in the future we do things
the SUSV2 way and originate the 64-bit scalar defs there.
1998-06-17 07:46:35 +00:00
msaitoh
f8c66df30b
sort entries and delete extra periods in SEE also section.
1998-05-22 18:27:50 +00:00
mrg
2fe3f46005
make swapctl exit with non-zero if -A and nothing swapped on
1998-02-10 03:14:32 +00:00
ross
9539f3dbe1
Typo corrections.
1998-01-26 06:58:01 +00:00
mrg
9f84449ae5
add missing .Nm sections.
1997-11-11 14:39:59 +00:00
mrg
93b7e4207d
oops; forgot to update the license here.
1997-10-23 03:00:12 +00:00
enami
0d4522a03f
Fix .Nm usage.
1997-10-20 09:11:16 +00:00
mrg
74f573d85d
remove advertising clause from all my licenses.
1997-10-10 05:39:47 +00:00
lukem
0a96848668
* fix .Nm usage
...
* prototype main() for WARNS=1
1997-09-15 11:21:59 +00:00
mikel
48b0668523
note that swapoff is unsupported; from Brian Grayson in PR misc/3930
1997-08-03 05:48:10 +00:00
mrg
327d42e4ef
free() what you malloc().
1997-07-21 05:05:12 +00:00
mikel
8b691f3aee
add comparisons to NULL implicit in my last changes
1997-07-11 03:36:27 +00:00
perry
9386b2e135
move -t option to stand on its own and change a bit.
...
add a WARNINGS about the dangers of running without swap or only using
swap files if you have local disk to fsck.
1997-06-26 00:51:07 +00:00
thorpej
2ea04e4383
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).
1997-06-25 23:18:10 +00:00
mikel
e5ef66b32c
include <err.h> for err*() and warn*() prototypes
...
fix some printf() formats to take long args instead of int
1997-06-25 07:44:12 +00:00
mikel
6b2081e1f5
include <err.h> for err*() and warn*() prototypes
...
cast long to int for use by printf("%d",..)
add parens for gcc -Wall
1997-06-24 05:22:38 +00:00
mrg
e4a130c78e
note what N in priority=N means.
1997-06-15 15:22:48 +00:00
mrg
20548cd669
make option lists much clearer.
1997-06-15 04:08:33 +00:00
mrg
a413009751
document nfsmntpt option, re-arrange a little.
1997-06-15 03:52:02 +00:00
thorpej
0d769d1d10
Totally rework the command parsing, eliminating a few walk-offs of
...
bogus pointers, etc.
1997-06-15 03:47:53 +00:00
mrg
b6fc10aa3c
link to swapon.
1997-06-12 16:18:50 +00:00
mrg
01a7eafbaa
swapctl program for new swap code.
1997-06-12 13:14:11 +00:00