Blame SOURCES/cryptsetup-2.0.4-update-cryptsetup-man-page-for-type-option-usage.patch

8af939
From 3f0f7acbc0dd72f1d98feb7af214cf12eb9bc47e Mon Sep 17 00:00:00 2001
8af939
From: Ondrej Kozina <okozina@redhat.com>
8af939
Date: Tue, 10 Jul 2018 14:36:45 +0200
8af939
Subject: [PATCH] Update cryptsetup man page for --type option usage.
8af939
8af939
Fixes #394.
8af939
---
8af939
 man/cryptsetup.8 | 23 +++++++++++++----------
8af939
 1 file changed, 13 insertions(+), 10 deletions(-)
8af939
8af939
diff --git a/man/cryptsetup.8 b/man/cryptsetup.8
8af939
index b2ef8cd..96d4fef 100644
8af939
--- a/man/cryptsetup.8
8af939
+++ b/man/cryptsetup.8
8af939
@@ -70,8 +70,8 @@ The following are valid actions for all supported device types.
8af939
 .IP
8af939
 Opens (creates a mapping with) <name> backed by device <device>.
8af939
 
8af939
-Device type can be \fIplain\fR, \fIluks\fR (default), \fIloopaes\fR
8af939
-or \fItcrypt\fR.
8af939
+Device type can be \fIplain\fR, \fIluks\fR (default), \fIluks1\fR, \fIluks2\fR,
8af939
+\fIloopaes\fR or \fItcrypt\fR.
8af939
 
8af939
 For backward compatibility there are \fBopen\fR command aliases:
8af939
 
8af939
@@ -243,7 +243,7 @@ the command prompts for it interactively.
8af939
 \fB<options>\fR can be [\-\-key\-file, \-\-keyfile\-offset,
8af939
 \-\-keyfile\-size, \-\-readonly, \-\-test\-passphrase,
8af939
 \-\-allow\-discards, \-\-header, \-\-key-slot, \-\-master\-key\-file, \-\-token\-id,
8af939
-\-\-token\-only, \-\-disable\-keyring, \-\-disable\-locks].
8af939
+\-\-token\-only, \-\-disable\-keyring, \-\-disable\-locks, \-\-type].
8af939
 .PP
8af939
 \fIluksSuspend\fR <name>
8af939
 .IP
8af939
@@ -266,7 +266,7 @@ Resumes a suspended device and reinstates the encryption key.
8af939
 Prompts interactively for a passphrase if \-\-key-file is not given.
8af939
 
8af939
 \fB<options>\fR can be [\-\-key\-file, \-\-keyfile\-size, \-\-header,
8af939
-\-\-disable\-keyring,\-\-disable\-locks]
8af939
+\-\-disable\-keyring, \-\-disable\-locks, \-\-type]
8af939
 .PP
8af939
 \fIluksAddKey\fR <device> [<key file with new key>]
8af939
 .IP
8af939
@@ -285,7 +285,7 @@ is not required.
8af939
 \-\-keyfile\-size, \-\-new\-keyfile\-offset,
8af939
 \-\-new\-keyfile\-size, \-\-key\-slot, \-\-master\-key\-file,
8af939
 \-\-iter\-time, \-\-force\-password, \-\-header, \-\-disable\-locks,
8af939
-\-\-unbound].
8af939
+\-\-unbound, \-\-type].
8af939
 .PP
8af939
 \fIluksRemoveKey\fR <device> [<key file with passphrase to be removed>]
8af939
 .IP
8af939
@@ -294,7 +294,7 @@ passphrase to be removed can be specified interactively,
8af939
 as the positional argument or via \-\-key-file.
8af939
 
8af939
 \fB<options>\fR can be [\-\-key\-file, \-\-keyfile\-offset,
8af939
-\-\-keyfile\-size, \-\-header, \-\-disable\-locks]
8af939
+\-\-keyfile\-size, \-\-header, \-\-disable\-locks, \-\-type]
8af939
 
8af939
 \fBWARNING:\fR If you read the passphrase from stdin
8af939
 (without further argument or with '-' as an argument
8af939
@@ -328,7 +328,7 @@ inaccessible.
8af939
 \fB<options>\fR can be [\-\-key\-file, \-\-keyfile\-offset,
8af939
 \-\-keyfile\-size, \-\-new\-keyfile\-offset,
8af939
 \-\-new\-keyfile\-size, \-\-key\-slot, \-\-force\-password, \-\-header,
8af939
-\-\-disable\-locks].
8af939
+\-\-disable\-locks, \-\-type].
8af939
 .PP
8af939
 .PP
8af939
 \fIluksConvertKey\fR <device>
8af939
@@ -364,7 +364,7 @@ an interactive confirmation when doing so. Removing the last
8af939
 passphrase makes a LUKS container permanently inaccessible.
8af939
 
8af939
 \fB<options>\fR can be [\-\-key\-file, \-\-keyfile\-offset,
8af939
-\-\-keyfile\-size, \-\-header, \-\-disable\-locks].
8af939
+\-\-keyfile\-size, \-\-header, \-\-disable\-locks, \-\-type].
8af939
 
8af939
 \fBWARNING:\fR If you read the passphrase from stdin
8af939
 (without further argument or with '-' as an argument
8af939
@@ -399,6 +399,8 @@ Set new UUID if \fI\-\-uuid\fR option is specified.
8af939
 Returns true, if <device> is a LUKS device, false otherwise.
8af939
 Use option \-v to get human-readable feedback. 'Command successful.'
8af939
 means the device is a LUKS device.
8af939
+
8af939
+By specifying \-\-type you may query for specific LUKS version.
8af939
 .PP
8af939
 \fIluksDump\fR <device>
8af939
 .IP
8af939
@@ -417,7 +419,7 @@ either interactively or via \-\-key\-file.
8af939
 
8af939
 \fB<options>\fR can be [\-\-dump\-master\-key, \-\-key\-file,
8af939
 \-\-keyfile\-offset, \-\-keyfile\-size, \-\-header, \-\-disable\-locks,
8af939
-\-\-master\-key\-file].
8af939
+\-\-master\-key\-file, \-\-type].
8af939
 
8af939
 \fBWARNING:\fR If \-\-dump\-master\-key is used with \-\-key\-file
8af939
 and the argument to \-\-key\-file is '-', no validation question
8af939
@@ -663,7 +665,8 @@ for LUKS device type.
8af939
 This command is useful to fix some known benign LUKS metadata
8af939
 header corruptions. Only basic corruptions of unused keyslot
8af939
 are fixable. This command will only change the LUKS header, not
8af939
-any key-slot data.
8af939
+any key-slot data. You may enforce LUKS version by adding \-\-type
8af939
+option.
8af939
 
8af939
 \fBWARNING:\fR Always create a binary backup of the original
8af939
 header before calling this command.
8af939
-- 
8af939
1.8.3.1
8af939