Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/x/c/xcp-storage-managers-HEAD/drivers/blktap2.py   xcp-storage-managers(Download)
        host_ref = self._session.xenapi.host.get_by_uuid(util.get_this_host())
        sm_config = self._session.xenapi.VDI.get_sm_config(vdi_ref)
        if NO_MULTIPLE_ATTACH and util.is_attached_rw(sm_config):
            raise util.SMException("VDI %s already attached RW" % vdi_uuid)
        if sm_config.has_key('paused'):

src/x/c/xcp-storage-managers-HEAD/drivers/cleanup.py   xcp-storage-managers(Download)
    def isAttachedRW(self):
        return util.is_attached_rw(
                self.sr.xapi.session.xenapi.VDI.get_sm_config(self.getRef()))
 
    def getVHDBlocks(self):