all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Fiona Ebner <f.ebner@proxmox.com>
Subject: [pve-devel] applied: [PATCH common] inotify: avoid cyclic use statement
Date: Mon, 11 Nov 2024 13:37:09 +0100	[thread overview]
Message-ID: <372636ab-8732-4e7f-9b45-1a3903a75633@proxmox.com> (raw)
In-Reply-To: <20240802115322.71114-1-f.ebner@proxmox.com>

Am 02.08.24 um 13:53 schrieb Fiona Ebner:
> Commit e68ebda ("fix #545: interfaces: allow arbitrary bridge names in
> network config") introduced a cyclic usage between
> PVE::RESTEnvironment and PVE::INotify, making code like the following
> fail:
> 
>> perl -e "use PVE::RESTEnvironment qw(log_warn);"
> 
> Note, including the PVE::INotify module first would still work, i.e.:
> 
>> perl -e "use PVE::INotify; use PVE::RESTEnvironment qw(log_warn);"
> 
> The rest of the PVE::INotify module alredy uses syslog(), which could
> be used here as well to get rid of the cyclic usage. Wolfgang argued
> that the whole point of commit e68ebda was to remove coupling between
> the name and the type of the interface. If there still is some code
> about a name starting with 'vmbr' being classified wrong, that should
> rather be fixed. Because of the very commit, the frontend already
> doesn't show e.g. a non-bridge with name 'vmbr7' in bridge selectors.
> 
> Suggested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
> Fixes: e68ebda ("fix #545: interfaces: allow arbitrary bridge names in network config")
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
> 
> @Stefan: Do you have any good rationale to rather keep the check?
> 
>  src/PVE/INotify.pm | 4 ----
>  1 file changed, 4 deletions(-)
> 
>

applied, thanks!


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


      parent reply	other threads:[~2024-11-11 12:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-02 11:53 [pve-devel] " Fiona Ebner
2024-11-11 11:49 ` Stefan Hanreich
2024-11-11 12:10   ` Fiona Ebner
2024-11-11 12:33     ` Stefan Hanreich
2024-11-11 12:37 ` Thomas Lamprecht [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=372636ab-8732-4e7f-9b45-1a3903a75633@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=f.ebner@proxmox.com \
    --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 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