Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/x/c/xcp-storage-managers-HEAD/drivers/mpathutil.py   xcp-storage-managers(Download)
        realpath = os.path.realpath(device)
        base = os.path.basename(realpath)
        mpath_cli.add_path(base)
 
def remove(scsi_id):

src/x/c/xcp-storage-managers-HEAD/drivers/mpath_dmp.py   xcp-storage-managers(Download)
        util.SMlog("Adding mpath path '%s'" % base)
        try:
            mpath_cli.add_path(base)
        except:
            util.SMlog("WARNING: exception raised while attempting to add path %s" % base)