• Home
  • Raw
  • Download

Lines Matching refs:op_name

693   def _CheckLength(self, length, total_blocks, op_name, length_name):  argument
707 raise error.PayloadError('%s: %s is zero.' % (op_name, length_name))
711 '%s: %s' % (op_name, length_name))
755 def _CheckReplaceOperation(self, op, data_length, total_dst_blocks, op_name): argument
770 'total_dst_blocks.' % op_name)
774 raise error.PayloadError('%s: contains src_extents.' % op_name)
778 raise error.PayloadError('%s: missing data_{offset,length}.' % op_name)
783 op_name + '.data_length', 'dst')
790 (op_name, data_length, total_dst_blocks, self.block_size))
792 def _CheckZeroOperation(self, op, op_name): argument
804 raise error.PayloadError('%s: contains src_extents.' % op_name)
806 raise error.PayloadError('%s: contains data_length.' % op_name)
808 raise error.PayloadError('%s: contains data_offset.' % op_name)
810 def _CheckAnyDiffOperation(self, op, data_length, total_dst_blocks, op_name): argument
825 raise error.PayloadError('%s: missing data_{offset,length}.' % op_name)
832 (op_name, data_length, total_dst_blocks, self.block_size,
838 raise error.PayloadError('%s: require {src,dst}_length.' % op_name)
841 raise error.PayloadError('%s: unneeded {src,dst}_length.' % op_name)
844 total_dst_blocks, op_name): argument
858 raise error.PayloadError('%s: contains data_{offset,length}.' % op_name)
864 (op_name, total_src_blocks, total_dst_blocks))
866 def _CheckAnySourceOperation(self, op, total_src_blocks, op_name): argument
879 raise error.PayloadError('%s: no src blocks in a source op.' % op_name)
883 raise error.PayloadError('%s: source hash missing.' % op_name)
885 def _CheckOperation(self, op, op_name, old_block_counters, new_block_counters, argument
909 op_name + '.src_extents')
912 op_name + '.dst_extents')
918 'data_length', op_name)
922 raise error.PayloadError('%s: dst_extents is empty.' % op_name)
926 self._CheckLength(op.src_length, total_src_blocks, op_name, 'src_length')
928 self._CheckLength(op.dst_length, total_dst_blocks, op_name, 'dst_length')
937 op_name)
945 (op_name, common.FormatSha256(op.data_sha256_hash),
952 op_name)
959 (op_name, data_offset, prev_data_offset))
964 self._CheckReplaceOperation(op, data_length, total_dst_blocks, op_name)
966 self._CheckZeroOperation(op, op_name)
969 total_dst_blocks, op_name)
970 self._CheckAnySourceOperation(op, total_src_blocks, op_name)
972 self._CheckAnyDiffOperation(op, data_length, total_dst_blocks, op_name)
973 self._CheckAnySourceOperation(op, total_src_blocks, op_name)
975 self._CheckAnyDiffOperation(op, data_length, total_dst_blocks, op_name)
976 self._CheckAnySourceOperation(op, total_src_blocks, op_name)
978 self._CheckAnyDiffOperation(op, data_length, total_dst_blocks, op_name)
979 self._CheckAnySourceOperation(op, total_src_blocks, op_name)
983 (op_name, op.type, self.minor_version))
1063 for op, op_name in common.OperationIter(operations, base_name):
1068 raise error.PayloadError('%s: invalid type (%d).' % (op_name, op.type))
1072 op, op_name, old_block_counters, new_block_counters,