summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon.c
diff options
context:
space:
mode:
authorKarel Zak2012-04-19 14:40:22 +0200
committerKarel Zak2012-04-19 14:40:22 +0200
commit9f9d0f21c470749ff9ae7aa92c0351985fee85e6 (patch)
treee77b74bbd41d067169926030426769be0f0def26 /sys-utils/swapon.c
parentmount: (new) add support for PARTUUID= and PARTLABEL= (diff)
downloadkernel-qcow2-util-linux-9f9d0f21c470749ff9ae7aa92c0351985fee85e6.tar.gz
kernel-qcow2-util-linux-9f9d0f21c470749ff9ae7aa92c0351985fee85e6.tar.xz
kernel-qcow2-util-linux-9f9d0f21c470749ff9ae7aa92c0351985fee85e6.zip
swapon: add support for PARTUUID= and PARTLABEL=
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/swapon.c')
-rw-r--r--sys-utils/swapon.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index e3be58cdd..bd7e6bf52 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -512,11 +512,13 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
fputs(USAGE_VERSION, out);
fputs(_("\nThe <spec> parameter:\n" \
- " -L <label> LABEL of device to be used\n" \
- " -U <uuid> UUID of device to be used\n" \
- " LABEL=<label> LABEL of device to be used\n" \
- " UUID=<uuid> UUID of device to be used\n" \
- " <device> name of device to be used\n" \
+ " -L <label> synonym for LABEL=<label>\n"
+ " -U <uuid> synonym for UUID=<uuid>\n"
+ " LABEL=<label> specifies device by swap area label\n"
+ " UUID=<uuid> specifies device by swap area UUID\n"
+ " PARTLABEL=<label> specifies device by partition label\n"
+ " PARTUUID=<uuid> specifies device by partition UUID\n"
+ " <device> name of device to be used\n"
" <file> name of file to be used\n"), out);
fprintf(out, USAGE_MAN_TAIL("swapon(8)"));