Add --enable-discards option to allow discards/TRIM requests.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@572 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2011-07-17 22:35:40 +00:00
parent 39e6cfcb8a
commit 9c71c74d59
9 changed files with 188 additions and 26 deletions

View File

@@ -12,6 +12,7 @@ struct volume_key;
#define DM_LMK_SUPPORTED (1 << 1) /* lmk mode */
#define DM_SECURE_SUPPORTED (1 << 2) /* wipe (secure) buffer flag */
#define DM_PLAIN64_SUPPORTED (1 << 3) /* plain64 IV */
#define DM_DISCARDS_SUPPORTED (1 << 4) /* discards/TRIM option is supported */
uint32_t dm_flags(void);
#define DM_ACTIVE_DEVICE (1 << 0)