Exemplo n.º 1
0
void initrd_rbd_destroy(void)
{
	if (initrd_rbd) {
		rbd_destroy(initrd_rbd);
		initrd_rbd = NULL;
	}
}
Exemplo n.º 2
0
static int cmd_rbd_destroy(struct vmm_chardev *cdev, const char *name)
{
	struct rbd *d = rbd_find(name);

	if (!d) {
		vmm_cprintf(cdev, "Failed to find %s RBD instance\n", name);
		return VMM_ENOTAVAIL;
	}

	rbd_destroy(d);

	vmm_cprintf(cdev, "Destroyed %s RBD instance\n", name);

	return VMM_OK;
}
Exemplo n.º 3
0
Arquivo: rbd.c Projeto: CoryXie/xvisor
static int rbd_driver_remove(struct vmm_device *dev)
{
	rbd_destroy(dev->priv);

	return VMM_OK;
}