#NEWLINE# def _CreateVolumes( self ) : #NEWLINE# #INDENT# '\n    Creates volumes for scratch disks.\n    ' #NEWLINE# for ( disk_num , disk_spec ) in enumerate ( self . disk_specs ) : #NEWLINE# #INDENT# if ( disk_spec . disk_type == disk . LOCAL ) : #NEWLINE# #INDENT# scratch_disk = LocalDisk ( self , disk_spec , self . name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( 'Currently only local disks are supported. Please re-run the benchmark with "--scratch_disk_type=local"' ) #NEWLINE# #UNINDENT# scratch_disk . _Create ( ) #NEWLINE# self . scratch_disks . append ( scratch_disk )