]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/mkswap.c
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / disk-utils / mkswap.c
CommitLineData
6dbe3af9
KZ
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 *
7eda085c 11 * Usage: mkswap [-c] [-vN] [-f] device [size-in-blocks]
6dbe3af9 12 *
5c36a0eb
KZ
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.
6dbe3af9 16 *
5c36a0eb 17 * The device may be a block device or an image of one, but this isn't
6dbe3af9
KZ
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.
5c36a0eb
KZ
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.
7eda085c 26 * V1_MAX_PAGES fixes, jj, 990325.
22853e4a 27 * sparc64 fixes, jj, 000219.
7eda085c
KZ
28 *
29