Fix standby detach
As the check added in commit a90839f286
tries to open the caching devcie
exclusively, it is impossible to detach cache from a standby instance.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
f97d8f3eff
commit
a33896573e
@ -2116,9 +2116,11 @@ int standby_handle() {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
if (validate_cache_path(standby_params.cache_device,
|
||||
standby_params.force) == FAILURE) {
|
||||
return FAILURE;
|
||||
if (standby_params.subcmd != standby_opt_subcmd_detach) {
|
||||
if (validate_cache_path(standby_params.cache_device,
|
||||
standby_params.force) == FAILURE) {
|
||||
return FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
switch (standby_params.subcmd) {
|
||||
|
Loading…
Reference in New Issue
Block a user