Lines Matching refs:tgt_size
2345 def tgt_size(self): member in DynamicPartitionUpdate
2358 def __init__(self, src_size=None, tgt_size=None): argument
2361 self.tgt_size = tgt_size
2416 if u.tgt_size)
2437 self._group_updates[g].tgt_size = int(info_dict.get(
2451 if u.src_size and u.tgt_size and u.src_size > u.tgt_size:
2469 if u.src_size and u.tgt_size and u.src_size > u.tgt_size:
2474 if u.tgt_size and u.src_size <= u.tgt_size:
2507 if u.src_size and u.tgt_size and u.src_size > u.tgt_size:
2509 (p, u.src_size, u.tgt_size))
2510 append('resize %s %s' % (p, u.tgt_size))
2513 if u.src_size is not None and u.tgt_size is None:
2515 if (u.src_size is not None and u.tgt_size is not None and
2516 u.src_size > u.tgt_size):
2517 comment('Shrink group %s from %d to %d' % (g, u.src_size, u.tgt_size))
2518 append('resize_group %s %d' % (g, u.tgt_size))
2521 if u.src_size is None and u.tgt_size is not None:
2522 comment('Add group %s with maximum size %d' % (g, u.tgt_size))
2523 append('add_group %s %d' % (g, u.tgt_size))
2524 if (u.src_size is not None and u.tgt_size is not None and
2525 u.src_size < u.tgt_size):
2526 comment('Grow group %s from %d to %d' % (g, u.src_size, u.tgt_size))
2527 append('resize_group %s %d' % (g, u.tgt_size))
2535 if u.tgt_size and u.src_size < u.tgt_size:
2536 comment('Grow partition %s from %d to %d' % (p, u.src_size, u.tgt_size))
2537 append('resize %s %d' % (p, u.tgt_size))