|
|
7cdc99 |
From 167da99eaa9708289492e8fca2ebe4964cf5baa7 Mon Sep 17 00:00:00 2001
|
|
|
7cdc99 |
From: Ondrej Kozina <okozina@redhat.com>
|
|
|
7cdc99 |
Date: Mon, 9 Jul 2018 17:27:55 +0200
|
|
|
7cdc99 |
Subject: [PATCH 5/6] Update crypt_repair API documentation for LUKS2.
|
|
|
7cdc99 |
|
|
|
7cdc99 |
---
|
|
|
7cdc99 |
lib/libcryptsetup.h | 10 ++++++----
|
|
|
7cdc99 |
1 file changed, 6 insertions(+), 4 deletions(-)
|
|
|
7cdc99 |
|
|
|
7cdc99 |
diff --git a/lib/libcryptsetup.h b/lib/libcryptsetup.h
|
|
|
7cdc99 |
index 0a7ebdb..2d959fa 100644
|
|
|
7cdc99 |
--- a/lib/libcryptsetup.h
|
|
|
7cdc99 |
+++ b/lib/libcryptsetup.h
|
|
|
7cdc99 |
@@ -624,7 +624,7 @@ int crypt_load(struct crypt_device *cd,
|
|
|
7cdc99 |
void *params);
|
|
|
7cdc99 |
|
|
|
7cdc99 |
/**
|
|
|
7cdc99 |
- * Try to repair crypt device LUKS1 on-disk header if invalid.
|
|
|
7cdc99 |
+ * Try to repair crypt device LUKS on-disk header if invalid.
|
|
|
7cdc99 |
*
|
|
|
7cdc99 |
* @param cd crypt device handle
|
|
|
7cdc99 |
* @param requested_type @link crypt-type @endlink or @e NULL for all known
|
|
|
7cdc99 |
@@ -632,9 +632,11 @@ int crypt_load(struct crypt_device *cd,
|
|
|
7cdc99 |
*
|
|
|
7cdc99 |
* @returns 0 on success or negative errno value otherwise.
|
|
|
7cdc99 |
*
|
|
|
7cdc99 |
- * @note Does not support LUKS2 devices explicitly. LUKS2 header is auto-repaired
|
|
|
7cdc99 |
- * (if exactly one header checksum does not match) automatically on
|
|
|
7cdc99 |
- * crypt_load().
|
|
|
7cdc99 |
+ * @note For LUKS2 device crypt_repair bypass blkid checks and
|
|
|
7cdc99 |
+ * perform auto-recovery even though there're third party device
|
|
|
7cdc99 |
+ * signatures found by blkid probes. Currently the crypt_repair on LUKS2
|
|
|
7cdc99 |
+ * works only if exactly one header checksum does not match or exactly
|
|
|
7cdc99 |
+ * one header is missing.
|
|
|
7cdc99 |
*/
|
|
|
7cdc99 |
int crypt_repair(struct crypt_device *cd,
|
|
|
7cdc99 |
const char *requested_type,
|
|
|
7cdc99 |
--
|
|
|
7cdc99 |
1.8.3.1
|
|
|
7cdc99 |
|