Skip to contentSkip to conversation

misprint in "cryptsetup.c"

dm-crypt Alexey Pronyaev 2 participants 2 messages Nov 2, 2016

lore
Share & tools
lore
#0 lore raw

Hello

I have just looking through <cryptsetup.c> (ver. cryptsetup-1.7.3)

and found out following code (lines 473-475):

if (cad.flags &
(CRYPT_ACTIVATE_ALLOW_DISCARDS|

CRYPT_ACTIVATE_ALLOW_DISCARDS|

CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS))

So as I see there are 2 mentiones

CRYPT_ACTIVATE_ALLOW_DISCARDS

And no any time of using

CRYPT_ACTIVATE_SAME_CPU_CRYPT

Could you please check if this is just misprint?

PS I am writing the e-mail, because I have not registered on
https://gitlab.com/cryptsetup/

With best regards

Alexey

#1 lore raw
Quoted 10 lines · Alexey Pronyaev

I have just looking through «cryptsetup.c» (ver. cryptsetup-1.7.3)

and found out following code (lines 473-475):

if (cad.flags & (CRYPT_ACTIVATE_ALLOW_DISCARDS|

CRYPT_ACTIVATE_ALLOW_DISCARDS|

CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS))

Hi,
yes, it is copy&paste error. I just fixed it in the devel git branch.

It is in the status function, so it will only skip the one line of status output if same-cpu option is used, so it is not big problem.

Anyway, thanks for the report!

Milan