projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc3339
)
Try to remove device even if it is busy (libdevmapper now handle retry).
author
Milan Broz
<gmazyland@gmail.com>
Wed, 2 May 2012 13:44:45 +0000
(15:44 +0200)
committer
Milan Broz
<gmazyland@gmail.com>
Wed, 2 May 2012 13:44:45 +0000
(15:44 +0200)
lib/setup.c
patch
|
blob
|
history
diff --git
a/lib/setup.c
b/lib/setup.c
index
9197e27
..
8e98490
100644
(file)
--- a/
lib/setup.c
+++ b/
lib/setup.c
@@
-1803,11
+1803,8
@@
int crypt_deactivate(struct crypt_device *cd, const char *name)
switch (crypt_status(cd, name)) {
case CRYPT_ACTIVE:
- r = dm_remove_device(name, 0, 0);
- break;
case CRYPT_BUSY:
- log_err(cd, _("Device %s is busy.\n"), name);
- r = -EBUSY;
+ r = dm_remove_device(name, 0, 0);
break;
case CRYPT_INACTIVE:
log_err(cd, _("Device %s is not active.\n"), name);