mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 10:50:01 +01:00
Do not try to load LUKS2 header if backup_file is LUKS1.
Also do not allow header restore if a different version is requested.
This commit is contained in:
@@ -693,7 +693,7 @@ void device_disable_direct_io(struct device *device)
|
||||
device->o_direct = 0;
|
||||
}
|
||||
|
||||
int device_direct_io(struct device *device)
|
||||
int device_direct_io(const struct device *device)
|
||||
{
|
||||
return device->o_direct;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user