Lines Matching refs:tgt_size
3902 def tgt_size(self): member in DynamicPartitionUpdate
3915 def __init__(self, src_size=None, tgt_size=None): argument
3918 self.tgt_size = tgt_size
3975 if u.tgt_size)
3996 self._group_updates[g].tgt_size = int(info_dict.get(
4010 if u.src_size and u.tgt_size and u.src_size > u.tgt_size:
4028 if u.src_size and u.tgt_size and u.src_size > u.tgt_size:
4033 if u.tgt_size and u.src_size <= u.tgt_size:
4066 if u.src_size and u.tgt_size and u.src_size > u.tgt_size:
4068 (p, u.src_size, u.tgt_size))
4069 append('resize %s %s' % (p, u.tgt_size))
4072 if u.src_size is not None and u.tgt_size is None:
4074 if (u.src_size is not None and u.tgt_size is not None and
4075 u.src_size > u.tgt_size):
4076 comment('Shrink group %s from %d to %d' % (g, u.src_size, u.tgt_size))
4077 append('resize_group %s %d' % (g, u.tgt_size))
4080 if u.src_size is None and u.tgt_size is not None:
4081 comment('Add group %s with maximum size %d' % (g, u.tgt_size))
4082 append('add_group %s %d' % (g, u.tgt_size))
4083 if (u.src_size is not None and u.tgt_size is not None and
4084 u.src_size < u.tgt_size):
4085 comment('Grow group %s from %d to %d' % (g, u.src_size, u.tgt_size))
4086 append('resize_group %s %d' % (g, u.tgt_size))
4094 if u.tgt_size and u.src_size < u.tgt_size:
4096 (p, u.src_size, u.tgt_size))
4097 append('resize %s %d' % (p, u.tgt_size))