Disable DIRECT_IO for LUKS header with unaligned keyslots.

Fixes issue#287.

Such a header is very rare, it is not worth to do more detection here.
This commit is contained in:
Milan Broz
2016-03-23 13:44:37 +01:00
parent be6ab40fb9
commit 0a951da27f
3 changed files with 17 additions and 0 deletions

View File

@@ -75,6 +75,8 @@ int device_block_size(struct device *device);
int device_read_ahead(struct device *device, uint32_t *read_ahead);
int device_size(struct device *device, uint64_t *size);
int device_open(struct device *device, int flags);
void device_disable_direct_io(struct device *device);
enum devcheck { DEV_OK = 0, DEV_EXCL = 1, DEV_SHARED = 2 };
int device_block_adjust(struct crypt_device *cd,