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

angelomariafederichini191269 angelomariafederichini191269 at protonmail.com
Sat Aug 19 08:31:50 CEST 2017


On 08/15/2017 09:52 AM, Milan Broz wrote:

> 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.

Sounds good.

> Thanks,

Thank you for your responsiveness and accepting the patch. Also thanks to Michael and Arno for the quick responses and enlightening comments about entropy in keyfiles.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20170819/3d599afa/attachment.html>

More information about the dm-crypt mailing list