misprint in "cryptsetup.c"
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
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