all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH common] file: add missing use statement
@ 2025-11-05 11:40 Friedrich Weber
  2025-11-05 12:03 ` Gabriel Goller
  2025-11-05 12:13 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Friedrich Weber @ 2025-11-05 11:40 UTC (permalink / raw)
  To: pve-devel

This fixes an "create storage failed: Undefined subroutine
&PVE::File::encode called" error when creating a PBS storage.

Fixes: 4b53440 ("create dedicated PVE::File module")
Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
---
 src/PVE/File.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/File.pm b/src/PVE/File.pm
index 53af963..444e7ff 100644
--- a/src/PVE/File.pm
+++ b/src/PVE/File.pm
@@ -2,6 +2,7 @@ package PVE::File;
 
 use v5.36;
 
+use Encode qw(encode);
 use Fcntl qw(SEEK_SET SEEK_END);
 use File::Basename qw(dirname);
 use File::Path qw(make_path);
-- 
2.47.3



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pve-devel] [PATCH common] file: add missing use statement
  2025-11-05 11:40 [pve-devel] [PATCH common] file: add missing use statement Friedrich Weber
@ 2025-11-05 12:03 ` Gabriel Goller
  2025-11-05 12:13 ` [pve-devel] applied: " Thomas Lamprecht
  1 sibling, 0 replies; 3+ messages in thread
From: Gabriel Goller @ 2025-11-05 12:03 UTC (permalink / raw)
  To: Friedrich Weber; +Cc: pve-devel

This also broke creating and updating fabrics. This patchs fixes it
though, thanks!

Consider:

Reviewed-by: Gabriel Goller <g.goller@proxmox.com>


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [pve-devel] applied: [PATCH common] file: add missing use statement
  2025-11-05 11:40 [pve-devel] [PATCH common] file: add missing use statement Friedrich Weber
  2025-11-05 12:03 ` Gabriel Goller
@ 2025-11-05 12:13 ` Thomas Lamprecht
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2025-11-05 12:13 UTC (permalink / raw)
  To: pve-devel, Friedrich Weber

On Wed, 05 Nov 2025 12:40:47 +0100, Friedrich Weber wrote:
> This fixes an "create storage failed: Undefined subroutine
> &PVE::File::encode called" error when creating a PBS storage.
> 
> 

Applied, thanks! I also fixed another issue I spotted in the module and added a
basic test harness to avoid regressing here again in the future.

[1/1] file: add missing use statement
      commit: c9a6ad626f06754a9a8f877075b7f178631d39be


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-05 12:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-05 11:40 [pve-devel] [PATCH common] file: add missing use statement Friedrich Weber
2025-11-05 12:03 ` Gabriel Goller
2025-11-05 12:13 ` [pve-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal