Add temporary debug code to allow better debugging of races
authorMilan Broz <gmazyland@gmail.com>
Sun, 15 Nov 2009 19:26:36 +0000 (19:26 +0000)
committerMilan Broz <gmazyland@gmail.com>
Sun, 15 Nov 2009 19:26:36 +0000 (19:26 +0000)
commitc3064c9442283c46cf43808595c710d3350eb093
tree4fbfd2a7f059b9ea49a305fff651d79242773cb3
parent16faeae0573a65437afa304a14226bc63996224d
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
ChangeLog
lib/Makefile.am
lib/internal.h
lib/libdevmapper.c
lib/setup.c
lib/utils_debug.c [new file with mode: 0644]