Check for data device and hash device area overlap in veritysetup.

Thanks Michal Virgovic for tests.
This commit is contained in:
Milan Broz
2016-12-13 13:52:05 +01:00
parent 50412375da
commit 0185defb7f
4 changed files with 56 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ 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);
int device_is_identical(struct device *device1, struct device *device2);
enum devcheck { DEV_OK = 0, DEV_EXCL = 1, DEV_SHARED = 2 };