Relax --shared test, allow mapping even for overlapping segments.

Support shared flag for LUKS devices (dangerous).
This commit is contained in:
Milan Broz
2012-05-02 00:46:42 +02:00
parent a718369374
commit f720affe8c
6 changed files with 18 additions and 21 deletions

View File

@@ -636,7 +636,7 @@ int crypt_keyslot_destroy(struct crypt_device *cd, int keyslot);
#define CRYPT_ACTIVATE_READONLY (1 << 0)
/** only reported for device without uuid */
#define CRYPT_ACTIVATE_NO_UUID (1 << 1)
/** activate more non-overlapping mapping to the same device */
/** activate even if cannot grant exclusive access (DANGEROUS) */
#define CRYPT_ACTIVATE_SHARED (1 << 2)
/** enable discards aka TRIM */
#define CRYPT_ACTIVATE_ALLOW_DISCARDS (1 << 3)