void initrd_rbd_destroy(void) { if (initrd_rbd) { rbd_destroy(initrd_rbd); initrd_rbd = NULL; } }
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; }
static int rbd_driver_remove(struct vmm_device *dev) { rbd_destroy(dev->priv); return VMM_OK; }