def copy_volume(src, dest, size_in_m, blocksize, sync=False, execute=utils.execute, ionice=None, throttle=None, sparse=False):
 if (isinstance(src, six.string_types) and isinstance(dest, six.string_types)):
  if (not throttle):
   throttle = throttling.Throttle.get_default()
  with throttle.subcommand(src, dest) as throttle_cmd:
   _copy_volume_with_path(throttle_cmd['prefix'], src, dest, size_in_m, blocksize, sync=sync, execute=execute, ionice=ionice, sparse=sparse)
 else:
  _copy_volume_with_file(src, dest, size_in_m)

def copy_volume ( src , dest , size_in_m , blocksize , sync = False , execute = utils . execute , ionice = None , throttle = None , sparse = False ) : if ( isinstance ( src , six . string_types ) and isinstance ( dest , six . string_types ) ) : if ( not throttle ) : throttle = throttling . Throttle . get_default ( ) with throttle . subcommand ( src , dest ) as throttle_cmd : _copy_volume_with_path ( throttle_cmd [ 'prefix' ] , src , dest , size_in_m , blocksize , sync = sync , execute = execute , ionice = ionice , sparse = sparse ) else : _copy_volume_with_file ( src , dest , size_in_m )
copy data from the source volume to the destination volume .