mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Make libdevmapper internal flags 64bit.
This commit is contained in:
@@ -445,7 +445,7 @@ int LUKS2_config_get_reencrypt_version(struct luks2_hdr *hdr, uint8_t *version);
|
||||
|
||||
bool LUKS2_reencrypt_requirement_candidate(struct luks2_hdr *hdr);
|
||||
|
||||
int LUKS2_unmet_requirements(struct crypt_device *cd, struct luks2_hdr *hdr, uint32_t reqs_mask, int quiet);
|
||||
int LUKS2_unmet_requirements(struct crypt_device *cd, struct luks2_hdr *hdr, uint64_t reqs_mask, int quiet);
|
||||
|
||||
int LUKS2_key_description_by_segment(struct crypt_device *cd,
|
||||
struct luks2_hdr *hdr, struct volume_key *vk, int segment);
|
||||
|
||||
@@ -1544,7 +1544,7 @@ out:
|
||||
* Persistent config flags
|
||||
*/
|
||||
static const struct {
|
||||
uint32_t flag;
|
||||
uint64_t flag;
|
||||
const char *description;
|
||||
} persistent_flags[] = {
|
||||
{ CRYPT_ACTIVATE_ALLOW_DISCARDS, "allow-discards" },
|
||||
@@ -1802,7 +1802,7 @@ int LUKS2_config_set_requirements(struct crypt_device *cd, struct luks2_hdr *hdr
|
||||
json_object *jobj_config, *jobj_requirements, *jobj_mandatory, *jobj;
|
||||
int i, r = -EINVAL;
|
||||
const struct requirement_flag *req;
|
||||
uint32_t req_id;
|
||||
uint64_t req_id;
|
||||
|
||||
if (!hdr)
|
||||
return -EINVAL;
|
||||
@@ -2980,7 +2980,7 @@ out:
|
||||
return r;
|
||||
}
|
||||
|
||||
int LUKS2_unmet_requirements(struct crypt_device *cd, struct luks2_hdr *hdr, uint32_t reqs_mask, int quiet)
|
||||
int LUKS2_unmet_requirements(struct crypt_device *cd, struct luks2_hdr *hdr, uint64_t reqs_mask, int quiet)
|
||||
{
|
||||
uint32_t reqs;
|
||||
int r = LUKS2_config_get_requirements(cd, hdr, &reqs);
|
||||
|
||||
@@ -2189,7 +2189,7 @@ static int reencrypt_replace_device(struct crypt_device *cd, const char *target,
|
||||
{
|
||||
int r, exists = 1;
|
||||
struct crypt_dm_active_device dmd_source, dmd_target = {};
|
||||
uint32_t dmflags = DM_SUSPEND_SKIP_LOCKFS | DM_SUSPEND_NOFLUSH;
|
||||
uint64_t dmflags = DM_SUSPEND_SKIP_LOCKFS | DM_SUSPEND_NOFLUSH;
|
||||
|
||||
log_dbg(cd, "Replacing table in device %s with table from device %s.", target, source);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user