mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 11:20:10 +01:00
Require device device-mapper to build and do not use backend wrapper for dm calls.
Signed-off-by: Milan Broz <mbroz@redhat.com> git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@90 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#include "internal.h"
|
||||
|
||||
extern struct hash_backend hash_gcrypt_backend;
|
||||
extern struct setup_backend setup_libdevmapper_backend;
|
||||
|
||||
#ifdef USE_PLUGINS
|
||||
static void init_plugins(void)
|
||||
@@ -24,13 +23,6 @@ static struct hash_backend *hash_backends[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static struct setup_backend *setup_backends[] = {
|
||||
#ifdef BUILTIN_LIBDEVMAPPER
|
||||
&setup_libdevmapper_backend,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
struct hash_backend *get_hash_backend(const char *name)
|
||||
{
|
||||
struct hash_backend **backend;
|
||||
@@ -114,22 +106,3 @@ out:
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
struct setup_backend *get_setup_backend(const char *name)
|
||||
{
|
||||
struct setup_backend **backend;
|
||||
|
||||
init_plugins();
|
||||
|
||||
for(backend = setup_backends; *backend; backend++)
|
||||
if (!name || strcmp(name, (*backend)->name) == 0)
|
||||
break;
|
||||
|
||||
return *backend;
|
||||
}
|
||||
|
||||
void put_setup_backend(struct setup_backend *backend)
|
||||
{
|
||||
#ifdef USE_PLUGINS
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user