From: Fiona Ebner <f.ebner@proxmox.com>
To: Christian Ludwig <christian_ludwig@genua.de>,
pve-devel@lists.proxmox.com
Subject: Re: [PATCH v2 pve-storage 6/16] test: list volumes: cover efi-firmware volumes
Date: Mon, 5 Oct 2026 16:37:14 +0200 [thread overview]
Message-ID: <8a953329-3328-403f-a9f0-e2b343880983@proxmox.com> (raw)
In-Reply-To: <9bc12cf44b8fb79ec2eba4f4eb836374dd63965e.1790337423.git@genua.de>
Am 28.09.26 um 7:48 AM schrieb Christian Ludwig:
> Check that files in efi-firmware/ are listed as efi-firmware volumes,
> regardless of their extension.
>
> Signed-off-by: Christian Ludwig <christian_ludwig@genua.de>
> ---
> src/test/list_volumes_test.pm | 51 ++++++++++++++++++++++++++++++++++-
> 1 file changed, 50 insertions(+), 1 deletion(-)
>
> diff --git a/src/test/list_volumes_test.pm b/src/test/list_volumes_test.pm
> index 0876902..a1e98d1 100644
> --- a/src/test/list_volumes_test.pm
> +++ b/src/test/list_volumes_test.pm
> @@ -72,6 +72,7 @@ my $scfg = {
> 'images' => 1,
> 'snippets' => 1,
> 'backup' => 1,
> + 'efi-firmware' => 1,
> },
> };
>
> @@ -462,6 +463,54 @@ my @tests = (
> ],
> expected => [], # returns empty list
> },
> + {
> + description => 'VMID: none, efi-firmware .fd files listed',
> + vmid => undef,
> + files => [
> + "$storage_dir/efi-firmware/custom.fd",
> + "$storage_dir/efi-firmware/vendor-bios-v2.fd",
> + ],
> + expected => [
> + {
> + 'content' => 'efi-firmware',
> + 'ctime' => DEFAULT_CTIME,
> + 'format' => 'raw',
> + 'size' => DEFAULT_SIZE,
> + 'volid' => 'local:efi-firmware/custom.fd',
> + },
> + {
> + 'content' => 'efi-firmware',
> + 'ctime' => DEFAULT_CTIME,
> + 'format' => 'raw',
> + 'size' => DEFAULT_SIZE,
> + 'volid' => 'local:efi-firmware/vendor-bios-v2.fd',
> + },
> + ],
> + },
> + {
> + description => 'VMID: none, all efi-firmware files listed regardless of extension',
Note: might need to be adapted depending on what we decide regarding
extension restriction.
> + vmid => undef,
> + files => [
> + "$storage_dir/efi-firmware/custom.fd",
> + "$storage_dir/efi-firmware/custom.iso",
> + ],
> + expected => [
> + {
> + 'content' => 'efi-firmware',
> + 'ctime' => DEFAULT_CTIME,
> + 'format' => 'raw',
> + 'size' => DEFAULT_SIZE,
> + 'volid' => 'local:efi-firmware/custom.fd',
> + },
> + {
> + 'content' => 'efi-firmware',
> + 'ctime' => DEFAULT_CTIME,
> + 'format' => 'raw',
> + 'size' => DEFAULT_SIZE,
> + 'volid' => 'local:efi-firmware/custom.iso',
> + },
> + ],
> + },
> );
>
> # provide static vmlist for tests
> @@ -520,7 +569,7 @@ plan tests => $plan + 1;
>
> {
> my $sid = 'local';
> - my $types = ['rootdir', 'images', 'vztmpl', 'iso', 'backup', 'snippets'];
> + my $types = ['rootdir', 'images', 'vztmpl', 'iso', 'backup', 'snippets', 'efi-firmware'];
> my @suffixes = ('qcow2', 'raw', 'vmdk', 'vhdx');
>
> # run through test cases
next prev parent reply other threads:[~2026-10-05 14:37 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-28 5:47 [PATCH v2 0/16] Support for custom EFI firmware Christian Ludwig
2026-09-28 5:47 ` [PATCH v2 pve-storage 1/16] plugin: add efi-firmware content type Christian Ludwig
2026-10-05 14:37 ` Fiona Ebner
2026-09-28 5:47 ` [PATCH v2 pve-storage 2/16] test: get_subdir: cover the " Christian Ludwig
2026-10-05 14:36 ` Fiona Ebner
2026-09-28 5:48 ` [PATCH v2 pve-storage 3/16] plugins: allow the efi-firmware content type on file based storages Christian Ludwig
2026-10-05 14:36 ` Fiona Ebner
2026-09-28 5:48 ` [PATCH v2 pve-storage 4/16] api: status: support efi-firmware in upload and download-url Christian Ludwig
2026-10-05 14:37 ` Fiona Ebner
2026-09-28 5:48 ` [PATCH v2 pve-storage 5/16] test: volume access: cover efi-firmware volumes Christian Ludwig
2026-10-05 14:36 ` Fiona Ebner
2026-09-28 5:48 ` [PATCH v2 pve-storage 6/16] test: list volumes: " Christian Ludwig
2026-10-05 14:37 ` Fiona Ebner [this message]
2026-09-28 5:48 ` [PATCH v2 qemu-server 07/16] config: add the efi-firmware option Christian Ludwig
2026-10-05 14:37 ` Fiona Ebner
2026-09-28 5:48 ` [PATCH v2 qemu-server 08/16] api: allow setting " Christian Ludwig
2026-10-05 14:36 ` Fiona Ebner
2026-09-28 5:48 ` [PATCH v2 qemu-server 09/16] ovmf: use a custom firmware image if configured Christian Ludwig
2026-10-05 14:36 ` Fiona Ebner
2026-09-28 5:48 ` [PATCH v2 qemu-server 10/16] test: efi-firmware key in VM config Christian Ludwig
2026-09-28 5:48 ` [PATCH v2 qemu-server 11/16] test: efi-firmware volumes replication Christian Ludwig
2026-09-28 5:48 ` [PATCH v2 pve-manager 12/16] ui: storage: add efi-firmware content type support Christian Ludwig
2026-09-28 5:48 ` [PATCH v2 pve-manager 13/16] ui: form: support other content types in the ISO selector Christian Ludwig
2026-09-28 5:48 ` [PATCH v2 pve-manager 14/16] ui: qemu: allow selecting a custom EFI firmware image Christian Ludwig
2026-09-28 5:48 ` [PATCH v2 pve-docs 15/16] pvesm: document the efi-firmware content type Christian Ludwig
2026-09-28 5:48 ` [PATCH v2 pve-docs 16/16] qm: document the efi-firmware VM option Christian Ludwig
2026-10-05 14:36 ` [PATCH v2 0/16] Support for custom EFI firmware Fiona Ebner
2026-10-08 8:37 ` Christian Ludwig
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=8a953329-3328-403f-a9f0-e2b343880983@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=christian_ludwig@genua.de \
--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