mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
Add temporary debug code to allow better debugging of races
with various udev-event tools which wrongly scan and open internal temporary cryptsetup devices. If cryptsetup run in debug mode (--debug) and remove of device fails, code scan /proc directory and tries to find process name which locked that device. git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@141 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
@@ -116,6 +116,9 @@ void logger(struct crypt_device *cd, int class, const char *file, int line, cons
|
||||
logger(c, CRYPT_LOG_ERROR, __FILE__, __LINE__, x); \
|
||||
set_error(x); } while(0)
|
||||
|
||||
int crypt_get_debug_level(void);
|
||||
void debug_processes_using_device(const char *name);
|
||||
|
||||
int crypt_memlock_inc(struct crypt_device *ctx);
|
||||
int crypt_memlock_dec(struct crypt_device *ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user