You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "shwstppr (via GitHub)" <gi...@apache.org> on 2023/10/13 10:36:32 UTC
Re: [PR] kvm: fix direct download template size [cloudstack]
shwstppr commented on code in PR #8093:
URL: https://github.com/apache/cloudstack/pull/8093#discussion_r1358090794
##########
utils/src/main/java/com/cloud/utils/storage/QCOW2Utils.java:
##########
@@ -114,7 +114,8 @@ private static long getVirtualSizeFromInputStream(InputStream inputStream) throw
public static long getVirtualSize(String urlStr) {
try {
URL url = new URL(urlStr);
- return getVirtualSizeFromInputStream(url.openStream());
+ boolean isCompressed = !urlStr.endsWith("qcow2");
Review Comment:
@rohityadavcloud made the change to use `UriUtils.COMMPRESSION_FORMATS`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org