summaryrefslogtreecommitdiffstats
path: root/mount/swapon.8
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:33 +0100
committerKarel Zak2006-12-07 00:25:33 +0100
commit726f69e29ca9d4842f3acb20fffd2466fda62c09 (patch)
treeabbc1b6e9bfb0dfe32e81a83648e261ccb2d5a5f /mount/swapon.8
parentImported from util-linux-2.2 tarball. (diff)
downloadkernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.gz
kernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.xz
kernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.zip
Imported from util-linux-2.5 tarball.
Diffstat (limited to 'mount/swapon.8')
-rw-r--r--mount/swapon.832
1 files changed, 25 insertions, 7 deletions
diff --git a/mount/swapon.8 b/mount/swapon.8
index 44c841681..911855dcf 100644
--- a/mount/swapon.8
+++ b/mount/swapon.8
@@ -35,18 +35,23 @@
.\" Sat Mar 6 20:46:02 1993: Modified by faith@cs.unc.edu
.\" Sat Oct 9 09:35:30 1993: Converted to man format by faith@cs.unc.edu
.\" Sat Nov 27 20:22:42 1993: Updated authorship information, faith@cs.unc.edu
+.\" Mon Sep 25 14:12:38 1995: Added -v and -p information
.\"
-.TH SWAPON 8 "27 November 1993" "Linux 0.99" "Linux Programmer's Manual"
+.TH SWAPON 8 "25 September 1995" "Linux 1.x" "Linux Programmer's Manual"
.SH NAME
swapon, swapoff \- enable/disable devices and files for paging and swapping
.SH SYNOPSIS
-.B /etc/swapon \-a
+.B /sbin/swapon [\-h \-V]
.br
-.BI /etc/swapon " specialfile " ...
+.B /sbin/swapon \-a [\-v]
.br
-.B /etc/swapoff \-a
+.BI "/sbin/swapon [\-v] [\-p " "priority" "] " " specialfile " ...
.br
-.BI /etc/swapoff " specialfile " ...
+.B /sbin/swapoff [\-h \-V]
+.br
+.B /sbin/swapoff \-a
+.br
+.BI /sbin/swapoff " specialfile " ...
.SH DESCRIPTION
.B Swapon
is used to specify devices on which paging and swapping are to take place.
@@ -59,10 +64,23 @@ is interleaved across several devices and files.
Normally, the first form is used:
.TP
+.B \-h
+Provide help
+.TP
+.B \-V
+Display version
+.TP
.B \-a
All devices marked as ``sw'' swap devices in
.I /etc/fstab
are made available.
+.TP
+.BI \-p " priority"
+Specify priority for
+.BR swapon .
+This option is only available if
+.B swapon
+was compiled under and is used under a 1.3.2 or later kernel.
.PP
.B Swapoff
disables swapping on the specified devices and files, or on all swap
@@ -75,10 +93,10 @@ flag is given.
.BR swapon "(2), " swapoff "(2), " fstab "(5), " init "(8), " mkswap (8),
.BR rc "(8), " mount (8)
.SH FILES
-.I /dev/hd[ab]?
+.I /dev/hd??
standard paging devices
.br
-.I /dev/sd[ab]?
+.I /dev/sd??
standard (SCSI) paging devices
.br
.I /etc/fstab