public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Roman Ondráček" <mail@romanondracek.cz>
To: pve-devel@lists.proxmox.com
Cc: "Roman Ondráček" <mail@romanondracek.cz>
Subject: [PATCH manager v3 2/2] ui: download from URL: allow decompressing xz compressed ISO images
Date: Sun, 25 Oct 2026 15:27:20 +0100	[thread overview]
Message-ID: <20261025142720.1784119-3-mail@romanondracek.cz> (raw)
In-Reply-To: <20261025142720.1784119-1-mail@romanondracek.cz>

Some distributions only provide their ISO images compressed with xz,
for example FreeBSD. Offer xz as decompression algorithm and detect it
from the file extension, so that such images can be downloaded
directly to an ISO storage.

This requires the storage library to support xz as compression format.

Signed-off-by: Roman Ondráček <mail@romanondracek.cz>
---

Changes v1 -> v3:
* rebase onto current master, no functional changes
* bump version to v3 to send it together with the storage patch

 www/manager6/window/DownloadUrlToStorage.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/manager6/window/DownloadUrlToStorage.js b/www/manager6/window/DownloadUrlToStorage.js
index be31fb59..eb43f2bc 100644
--- a/www/manager6/window/DownloadUrlToStorage.js
+++ b/www/manager6/window/DownloadUrlToStorage.js
@@ -85,7 +85,7 @@ Ext.define('PVE.window.DownloadUrlToStorage', {
                     let compression = '__default__';
                     let needsFormat = false;
                     if (view.content === 'iso') {
-                        const matches = filename.match(/^(.+)\.(gz|lzo|zst|bz2)$/i);
+                        const matches = filename.match(/^(.+)\.(gz|lzo|zst|bz2|xz)$/i);
                         if (matches) {
                             filename = matches[1];
                             compression = matches[2].toLowerCase();
@@ -263,6 +263,7 @@ Ext.define('PVE.window.DownloadUrlToStorage', {
                         ['gz', 'GZIP'],
                         ['zst', 'ZSTD'],
                         ['bz2', 'BZIP2'],
+                        ['xz', 'XZ'],
                     ],
                     cbind: {
                         hidden: (get) => get('content') !== 'iso',
-- 
2.55.0




      parent reply	other threads:[~2026-10-25 14:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-25 14:27 [PATCH storage/manager v3 0/2] add xz support for ISO images Roman Ondráček
2026-10-25 14:27 ` [PATCH storage v3 1/2] add xz to known compression formats Roman Ondráček
2026-10-25 14:27 ` Roman Ondráček [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261025142720.1784119-3-mail@romanondracek.cz \
    --to=mail@romanondracek.cz \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal