]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * mkswap.c - set up a linux swap device | |
3 | * | |
4 | * (C) 1991 Linus Torvalds. This file may be redistributed as per | |
5 | * the Linux copyright. | |
6 | */ | |
7 | ||
8 | /* | |
9 | * 20.12.91 - time began. Got VM working yesterday by doing this by hand. | |
10 | * | |
11 | * Usage: mkswap [-c] [-vN] [-f] device [size-in-blocks] | |
12 | * | |
13 | * -c for readability checking. (Use it unless you are SURE!) | |
14 | * -vN for swap areas version N. (Only N=0,1 known today.) | |
15 | * -f for forcing swap creation even if it would smash partition table. | |
16 | * | |
17 | * The device may be a block device or an image of one, but this isn't | |
18 | * enforced (but it's not much fun on a character device :-). | |
19 | * | |
20 | * Patches from jaggy@purplet.demon.co.uk (Mike Jagdis) to make the | |
21 | * size-in-blocks parameter optional added Wed Feb 8 10:33:43 1995. | |
22 | * | |
23 | * Version 1 swap area code (for kernel 2.1.117), aeb, 981010. | |
24 | * | |
25 | * Sparc fixes, jj@ultra.linux.cz (Jakub Jelinek), 981201 - mangled by aeb. | |
26 | * V1_MAX_PAGES fixes, jj, 990325. | |
27 | * | |
28 |