def refresh(dbg, vdi, vol_path, new_vol_path): if vdi.active_on: poolhelper.refresh_datapath_on_host( dbg, vdi.active_on, vol_path, new_vol_path )
def tap_ctl_refresh(node, cb, opq): if node.active_on: node_path = cb.volumeGetPath(opq, str(node.vhd.id)) log.debug("VHD {} active on {}".format(node.vhd.id, node.active_on)) poolhelper.refresh_datapath_on_host(GC, node.active_on, node_path, node_path)