Add autodetection code for active dm device.

This commit is contained in:
Ondrej Kozina
2019-03-29 19:54:05 +01:00
parent 64f59ff71e
commit 092ef90f29
3 changed files with 193 additions and 0 deletions

View File

@@ -114,6 +114,9 @@ int tools_write_json_file(struct crypt_device *cd, const char *file, const char
int tools_detect_signatures(const char *device, int ignore_luks, size_t *count);
int tools_wipe_all_signatures(const char *path);
int tools_lookup_crypt_device(struct crypt_device *cd, const char *type,
const char *data_device_path, char *name, size_t name_length);
/* Log */
#define log_dbg(x...) clogger(NULL, CRYPT_LOG_DEBUG, __FILE__, __LINE__, x)
#define log_std(x...) clogger(NULL, CRYPT_LOG_NORMAL, __FILE__, __LINE__, x)