Lines Matching refs:old_image_size

72 static int resize_image_loop(UserRecord *h, HomeSetup *setup, uint64_t old_image_size, uint64_t new…
2995 uint64_t old_image_size, in resize_image_loop() argument
3010 current_image_size = old_image_size; in resize_image_loop()
3011 …for (uint64_t lower_boundary = old_image_size, upper_boundary = new_image_size, try_image_size = n… in resize_image_loop()
3018 …if (!ERRNO_IS_DISK_SPACE(r) || new_image_size < old_image_size) /* Not a disk space issue? Not try… in resize_image_loop()
3028 …ing from %s to %s via truncation worked successfully.", FORMAT_BYTES(old_image_size), FORMAT_BYTES… in resize_image_loop()
3034 … if (new_image_size < old_image_size) /* If we are shrinking we are done after one iteration */ in resize_image_loop()
3070 …uint64_t old_image_size, new_image_size, old_fs_size, new_fs_size, crypto_offset, crypto_offset_by… in home_resize_luks() local
3140 if (ioctl(image_fd, BLKGETSIZE64, &old_image_size) < 0) in home_resize_luks()
3146 new_image_size = old_image_size; /* we can't resize physical block devices */ in home_resize_luks()
3152 old_image_size = st.st_size; in home_resize_luks()
3166 … if (old_image_size >= new_image_size_rounded && old_image_size <= h->disk_size) { in home_resize_luks()
3173 intention = CMP(new_image_size, old_image_size); /* Is this a shrink */ in home_resize_luks()
3197 … = %" PRIu64 ", image = %" PRIu64, setup->partition_offset, setup->partition_size, old_image_size); in home_resize_luks()
3200 setup->partition_offset + setup->partition_size > old_image_size) in home_resize_luks()
3206 partition_table_extra = old_image_size - setup->partition_size; in home_resize_luks()
3311 FORMAT_BYTES(old_image_size), in home_resize_luks()
3334 … r = resize_image_loop(h, setup, old_image_size, new_image_size, &resized_image_size); in home_resize_luks()
3338 if (resized_image_size == old_image_size) { in home_resize_luks()
3343 assert(resized_image_size > old_image_size); in home_resize_luks()
3345 …_info("Growing of image file from %s to %s completed.", FORMAT_BYTES(old_image_size), FORMAT_BYTES… in home_resize_luks()
3362 assert(new_image_size == old_image_size); in home_resize_luks()
3467 assert(new_image_size == old_image_size); in home_resize_luks()