First kill detached providers, because of two reasons:
- after killing all attached providers, all providers are then detached and operation is repeated for those who were attached, - we don't want to remove keys for read-only attached providers, we only want to detach them. MFC after: 1 week
This commit is contained in:
parent
d0cca13549
commit
301b9004a9
@ -926,18 +926,14 @@ eli_kill(struct gctl_req *req)
|
||||
* geli kill da0 da1
|
||||
*/
|
||||
|
||||
/*
|
||||
* First attached providers.
|
||||
*/
|
||||
gctl_issue(req);
|
||||
/*
|
||||
* Now the rest.
|
||||
*/
|
||||
/* First detached provider. */
|
||||
for (i = 0; i < nargs; i++) {
|
||||
prov = gctl_get_ascii(req, "arg%d", i);
|
||||
if (!eli_is_attached(prov))
|
||||
eli_kill_detached(req, prov);
|
||||
}
|
||||
/* Now attached providers. */
|
||||
gctl_issue(req);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user