Check data device offset if it fits data device size in luksFormat.

This commit is contained in:
Milan Broz
2018-12-11 21:28:51 +01:00
parent 7d8003da46
commit 2a1d58ed22
6 changed files with 41 additions and 28 deletions

View File

@@ -263,7 +263,7 @@ static int _setup(void)
fd = loop_attach(&DEVICE_1, IMAGE1, 0, 0, &ro);
close(fd);
_system("dd if=/dev/zero of=" IMAGE_EMPTY " bs=1M count=4 2>/dev/null", 1);
_system("dd if=/dev/zero of=" IMAGE_EMPTY " bs=1M count=10 2>/dev/null", 1);
fd = loop_attach(&DEVICE_2, IMAGE_EMPTY, 0, 0, &ro);
close(fd);