Ask xend to remove device in the config file too

* src/xend_internal.c: applied a patch from Ryan Scott to ask
  xend to save the device removal change in the config file
Daniel
This commit is contained in:
Daniel Veillard 2008-04-10 13:30:17 +00:00
parent 9ae41a71ac
commit c863713742
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Apr 10 15:24:40 CEST 2008 Daniel Veillard <daniel@veillard.com>
* src/xend_internal.c: applied a patch from Ryan Scott to ask
xend to save the change in the config file
Thu Apr 10 09:28:31 CEST 2008 Daniel Veillard <daniel@veillard.com>
* src/Makefile.am src/lxc_conf.c src/lxc_conf.h src/lxc_container.c

View File

@ -3347,7 +3347,7 @@ xenDaemonDetachDevice(virDomainPtr domain, const char *xml)
if (virDomainXMLDevID(domain, xml, class, ref, sizeof(ref)))
return (-1);
return(xend_op(domain->conn, domain->name, "op", "device_destroy",
"type", class, "dev", ref, NULL));
"type", class, "dev", ref, "force", "0", "rm_cfg", "1", NULL));
}