Lines Matching refs:current_size
147 uint64_t current_size, new_size; member
242 .current_size = UINT64_MAX, in partition_new()
425 assert(p->current_size != UINT64_MAX); in partition_min_size()
426 return p->current_size; in partition_min_size()
429 sz = p->current_size != UINT64_MAX ? p->current_size : HARD_MIN_SIZE; in partition_min_size()
466 assert(p->current_size != UINT64_MAX); in partition_max_size()
467 return p->current_size; in partition_max_size()
472 if (p->current_size != UINT64_MAX) in partition_max_size()
473 return MAX(p->current_size, sm); in partition_max_size()
528 assert(a->after->current_size != UINT64_MAX); in free_area_available_for_new_partitions()
531 … space_end = round_up_size(a->after->offset + a->after->current_size, context->grain_size) + avail; in free_area_available_for_new_partitions()
729 p->new_size = p->current_size; in context_grow_partitions_phase()
796 assert(a->after->current_size != UINT64_MAX); in context_grow_partitions_on_free_area()
798 …span += round_up_size(a->after->offset + a->after->current_size, context->grain_size) - a->after->… in context_grow_partitions_on_free_area()
886 p->new_size = p->current_size; in context_grow_partitions()
1792 pp->current_size = sz; in context_load_partition_table()
1825 np->current_size = sz; in context_load_partition_table()
1916 p->current_size = UINT64_MAX; in context_unload_partition_table()
2025 if (p->current_size == UINT64_MAX) in context_dump_partitions()
2027 else if (p->current_size != p->new_size) in context_dump_partitions()
2033 r = format_size_change(p->current_size, p->new_size, &size_change); in context_dump_partitions()
2054 TABLE_UINT64, p->current_size == UINT64_MAX ? 0 : p->current_size, in context_dump_partitions()
2298 if (p->new_size != p->current_size) in context_changed()
3334 if (p->new_size != p->current_size) { in context_mangle_partitions()
3335 assert(p->new_size >= p->current_size); in context_mangle_partitions()
4653 uint64_t current_size; in resize_backing_fd() local
4680 if (ioctl(*fd, BLKGETSIZE64, ¤t_size) < 0) in resize_backing_fd()
4689 current_size = st.st_size; in resize_backing_fd()
4692 if (current_size >= arg_size) { in resize_backing_fd()
4694 node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()
4715 if ((uint64_t) st.st_size != current_size) in resize_backing_fd()
4736 … node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()
4741 if (current_size == 0) /* Likely regular file just created by us */ in resize_backing_fd()
4745 node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()
4753 node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()
4755 if (current_size == 0) /* Likely regular file just created by us */ in resize_backing_fd()
4759 node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()