]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup: call crypt_load() for LUKS only once
authorMilan Broz <gmazyland@gmail.com>
Mon, 27 May 2019 07:43:03 +0000 (09:43 +0200)
committerMilan Broz <gmazyland@gmail.com>
Tue, 28 May 2019 13:31:25 +0000 (15:31 +0200)
commitea9a9d49e4af31c49e5c216e7e5e2f533e727579
tree1c841aeb9d9adbc139fc7b253efe4dee398c4996
parent2e4beb875bcb24e7d7d4339cc202b0b3f2953f71
cryptsetup: call crypt_load() for LUKS only once

The crypt_load() for LUKS2 can read a quite big area of disk
(metadata area size is configurable and can increase up to megabytes).

This initialization is not needed to be repeated, just use the existing context.

(This patch is also required for the following change.)
src/cryptsetup/cryptsetup.c