Better detects dm-ioctl secure flag using version before use.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@435 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2011-03-05 21:59:21 +00:00
parent 0b5418c02f
commit 0165301357
2 changed files with 31 additions and 13 deletions

View File

@@ -57,9 +57,10 @@ void set_error_va(const char *fmt, va_list va);
void set_error(const char *fmt, ...);
const char *get_error(void);
/* Device mapper backend */
#define DM_KEY_WIPE_SUPPORTED (1 << 0) /* kernel supports key wipe message */
#define DM_LMK_SUPPORTED (1 << 1) /* kernel supports lmk mode */
/* Device mapper backend - kernel support flags */
#define DM_KEY_WIPE_SUPPORTED (1 << 0) /* key wipe message */
#define DM_LMK_SUPPORTED (1 << 1) /* lmk mode */
#define DM_SECURE_SUPPORTED (1 << 2) /* wipe (secure) buffer flag */
uint32_t dm_flags(void);
const char *dm_get_dir(void);