[dm-crypt] [PATCH] Speed up keyfile reading

Milan Broz gmazyland at gmail.com
Tue Aug 15 11:52:44 CEST 2017

On 08/12/2017 08:26 PM, angelomariafederichini191269 wrote:
> Attached you find a patch which enhances the loop to use bulk read
> operations instead of single byte ones.

I added slightly modified version to the master branch
(there was a code shuffle so the function is moved to libcryptsetup internally).

Anyway, I added handling of -EINTR for read() and code will retry instead
of failing in this case - we have already wrapper read_buffer for that.

I will probably backport this later for stable 1.7.6.


More information about the dm-crypt mailing list