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:
Pawel Jakub Dawidek 2006-09-16 09:26:57 +00:00
parent d0cca13549
commit 301b9004a9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162347

View File

@ -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