def FillDevice(vm, disk, fill_size):

  command = (('sudo %s --filename=%s --ioengine=libaio '
              '--name=fill-device --blocksize=512k --iodepth=64 '
              '--rw=write --direct=1 --size=%s') %
             (fio.FIO_PATH, disk.GetDevicePath(), fill_size))

  vm.RobustRemoteCommand(command)
Fill the given disk on the given vm up to fill_size.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/fio_benchmark.py/FillDevice