original_docstring: Runs actprep binary to initialize the drive.
docstring: Runs actprep binary to initialize the drive.
docstring_tokens: Runs actprep binary to initialize the drive .
code: def RunActPrep(vm):
    """Runs actprep binary to initialize the drive."""
  
    def _RunActPrep(device):
      vm.RobustRemoteCommand('cd {0} && sudo ./actprep {1}'.format(
          ACT_DIR, device.GetDevicePath()))
  
    assert len(vm.scratch_disks) > FLAGS.act_reserved_partitions, (
        'More reserved partition than total partitions available.')
    # Only salt partitions will be used.
    vm_util.RunThreaded(
        _RunActPrep, vm.scratch_disks[FLAGS.act_reserved_partitions:])
code_tokens: def RunActPrep ( vm ) : def _RunActPrep ( device ) : vm . RobustRemoteCommand ( 'cd {0} && sudo ./actprep {1}' . format ( ACT_DIR , device . GetDevicePath ( ) ) ) assert len ( vm . scratch_disks ) > FLAGS . act_reserved_partitions , ( 'More reserved partition than total partitions available.' ) vm_util . RunThreaded ( _RunActPrep , vm . scratch_disks [ FLAGS . act_reserved_partitions : ] )
short_docstring: Runs actprep binary to initialize the drive.
short_docstring_tokens: Runs actprep binary to initialize the drive .
comment: """Runs actprep binary to initialize the drive."""$SEP$# Only salt partitions will be used.