3 Commits

Author SHA1 Message Date
Bart Laarhoven
fdb4002298 util: run cryptsetup with "-d -" instead of "-d /dev/stdin"
Make sure that cryptsetup runs with the correct parameters to fix issues
in some environments.

Signed-off-by: Bart Laarhoven <bartlaarhoven@users.noreply.github.com>
2025-05-07 09:44:19 +00:00
Niels de Vos
bc8b1e792f cleanup: address golangci 'errcheck' issues
Many reports are about closing or removing files. In some cases it is
possible to report an error in the logs, in other cases the error can be
ignored without potential issues.

Test cases have been modified to not remove the temporary files. The
temporary directory that is provided by the testing package, is removed
once the tests are done.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-05-06 11:26:06 +00:00
Niraj Yadav
1c02e69ba4 rbd: Add timeout for cryptsetup commands
This PR modifies the execCryptSetupCommand so that
the process is killed in an event of lock timeout.

Useful in cases where the volume lock is released but
the command is still running.

Signed-off-by: Niraj Yadav <niryadav@redhat.com>
2024-11-05 11:39:59 +00:00