Fix deactivation of device when failed underlying node disappeared
authorMilan Broz <gmazyland@gmail.com>
Sun, 17 Mar 2013 19:54:04 +0000 (20:54 +0100)
committerMilan Broz <gmazyland@gmail.com>
Sun, 17 Mar 2013 19:54:04 +0000 (20:54 +0100)
commitf64064fe71363a14ab0c62359e451f9cdc39dc50
tree84889029cc4b85dcef9b0a5966a2ce42300f1389
parentf2521889c2315b8f2bd812a92fa37057fc382877
Fix deactivation of device when failed underlying node disappeared

If underlying device disappears (failed drive, removed flash drive etc)
cryptsetup cannot report LUKS parameters (header no longer available).

Fix return code of init_by name in this situation (crypt
context is NULL).

Report visible error if deactivation fails and device is still busy.

Fixes issue#149.
lib/setup.c