Did I find the right examples for you? yes no

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

src/x/c/xcp-storage-managers-HEAD/drivers/lcache.py   xcp-storage-managers(Download)
import blktap2
import glob
import SR
from stat import * # S_ISBLK(), ...
 
    def from_uuid(cls, sr_uuid):
        import SR
        sr_path = "%s/%s" % (SR.MOUNT_BASE, sr_uuid)
 
        cache_sr = cls(sr_path)
    def from_session(cls, session):
        import util
        import SR as sm
 
        host_ref = util.get_localhost_uuid(session)

src/x/c/xcp-storage-managers-HEAD/drivers/util.py   xcp-storage-managers(Download)
import errno, socket
import xml.dom.minidom
import SR, scsiutil
import statvfs
import stat
        raise xs_errors.XenError('APIFailure')
    for SR in SRs:
        record = SRs[SR]
        conf = record["sm_config"]
        if conf.has_key('devserial'):

src/x/c/xcp-storage-managers-HEAD/drivers/blktap2.py   xcp-storage-managers(Download)
    def _setup_cache(self, session, sr_uuid, vdi_uuid, local_sr_uuid,
            scratch_mode):
        import SR
        import EXTSR
        import NFSSR
    def _remove_cache(self, session, local_sr_uuid):
        import SR
        import EXTSR
        import NFSSR
        import XenAPI

src/x/c/xcp-storage-managers-HEAD/drivers/xs_errors.py   xcp-storage-managers(Download)
import os
import xml.dom.minidom
import SR
import util
 

src/x/c/xcp-storage-managers-HEAD/drivers/VDI.py   xcp-storage-managers(Download)
#
 
import SR
import xml.dom.minidom
import xmlrpclib

src/x/c/xcp-storage-managers-HEAD/drivers/VASSR.py   xcp-storage-managers(Download)
sys.path = ['/opt/xensource/sm'] + sys.path
 
import SR
import VDI
import SRCommand

src/x/c/xcp-storage-managers-HEAD/drivers/udevSR.py   xcp-storage-managers(Download)
#         USB CDROM/disk devices
 
import SR, VDI, SRCommand, util, lvutil
import errno
import os, sys, time, stat

src/x/c/xcp-storage-managers-HEAD/drivers/SRCommand.py   xcp-storage-managers(Download)
import xs_errors
import xmlrpclib
import SR, VDI, util
import blktap2
import resetvdis

src/x/c/xcp-storage-managers-HEAD/drivers/sm.py   xcp-storage-managers(Download)
import sys
import xs_errors
import SR, SRCommand
# We could autodiscover these too
import FileSR, NFSSR, LVMSR, EXTSR, RAWSR

src/x/c/xcp-storage-managers-HEAD/drivers/SHMSR.py   xcp-storage-managers(Download)
# GNU Lesser General Public License for more details.
 
import SR, VDI, SRCommand, util
import os, re
import xs_errors

  1 | 2 | 3 | 4  Next