regression: luksFormat doesn't grow image file if needed anymore
It's developement regression only (unreleased). With cryptsetup 2.0.6 following commands succeeded:
[usr@machine]# truncate -s 4096 /some/file
[usr@machine]# cryptsetup luksFormat /some/file
In pre-release code, cryptsetup refuses to grow the image file and returns error:
[usr@machine]# truncate -s 4096 /some/file
[usr@machine]# cryptsetup luksFormat /some/file
Enter passphrase for /some/file:
Device /some/file is too small. Need at least 2097152 bytes.