#NEWLINE# def FillDevice( vm , disk , fill_size ) : #NEWLINE# #INDENT# 'Fill the given disk on the given vm up to fill_size.\n\n  Args:\n    vm: a linux_virtual_machine.BaseLinuxMixin object.\n    disk: a disk.BaseDisk attached to the given vm.\n    fill_size: amount of device to fill, in fio format.\n  ' #NEWLINE# 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 ( ) , vm ) ) #NEWLINE# vm . RobustRemoteCommand ( command )