]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: add support for PARTUUID= and PARTLABEL=
authorKarel Zak <kzak@redhat.com>
Thu, 19 Apr 2012 12:40:22 +0000 (14:40 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Apr 2012 12:40:22 +0000 (14:40 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/swapon.c

index e3be58cddd23309e535db3b3226027a1506e0fb8..bd7e6bf526e49c6d1b48f69c3898db1a367beeb1 100644 (file)
@@ -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)"));