def mount(self, source, target):
        source = os.path.abspath(source)
        self.info("mounting %s at %s" % (source, target))
        try:
            os.makedirs(target)
        except OSError:
            pass
        try:
            self.cmd([MOUNT_BIN, "--bind", source, target])
            self._mounts.append((source, target))
        except:
            self.warn("mounting failed for %s at %s" % (source, target))
dataset/ETHPy150Open coreemu/core/daemon/core/phys/pnodes.py/PhysicalNode.mount/original