Lines Matching refs:new_size
373 uint64_t old_size, new_size, max_add;
401 new_size = ((uint64_t) b.f_blocks - (uint64_t) b.f_bavail) * (uint64_t) b.f_bsize * 3;
404 if (new_size < VAR_LIB_MACHINES_SIZE_START)
405 new_size = VAR_LIB_MACHINES_SIZE_START;
408 if (new_size < old_size)
412 if (new_size > old_size + max_add)
413 new_size = old_size + max_add;
415 r = btrfs_resize_loopback("/var/lib/machines", new_size, true);
422 (void) btrfs_qgroup_set_limit("/var/lib/machines", 0, new_size);
423 (void) btrfs_subvol_set_subtree_quota_limit("/var/lib/machines", 0, new_size);
425 log_info("Grew /var/lib/machines btrfs loopback file system to %s.", format_bytes(buf, sizeof(buf), new_size));