def _CreateVolumes(self):
    for disk_num, disk_spec in enumerate(self.disk_specs):
      if disk_spec.disk_type == disk.LOCAL:
        scratch_disk = LocalDisk(disk_num, disk_spec, self.name)
      else:
        raise Exception('Currently only local disks are supported. Please '
                        're-run the benchmark with "--scratch_disk_type=local"')
      scratch_disk._Create()
      self.scratch_disks.append(scratch_disk)
Creates volumes for scratch disks.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/mesos/mesos_docker_instance.py/MesosDockerInstance._CreateVolumes