Exemplo n.º 1
0
def _setUpbackend(b):
    if isinstance(b, Backend.RestBackend):
        pass
    elif isinstance(b, Backend.LocalBackend):
        auxiliary.createDirSafe(b.params()["local_connection_path"])
    else:
        raise Exception("unsupported backendtype: %s" % b)
Exemplo n.º 2
0
def _setUpbackend(b):
    if isinstance(b, Backend.RestBackend):
        pass
    elif isinstance(b, Backend.LocalBackend):
        auxiliary.createDirSafe(b.params()["local_connection_path"])
    else:
        raise Exception("unsupported backendtype: %s" % b)
Exemplo n.º 3
0
def maybeCreateDirs(cfg):
    drs = [cfg["target_configuration"]["volume_manager"]["tlog_path"],
           cfg["target_configuration"]["volume_manager"]["metadata_path"]] + \
        [mp["path"]
         for mp in cfg["target_configuration"]["scocache"]["scocache_mount_points"]]

    for d in drs:
        auxiliary.createDirSafe(d)
Exemplo n.º 4
0
def maybeCreateDirs(cfg):
    drs = [cfg["target_configuration"]["volume_manager"]["tlog_path"],
           cfg["target_configuration"]["volume_manager"]["metadata_path"]] + \
        [mp["path"]
         for mp in cfg["target_configuration"]["scocache"]["scocache_mount_points"]]

    for d in drs:
        auxiliary.createDirSafe(d)