public inbox for pve-devel@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>,
	Fabian Ebner <f.ebner@proxmox.com>
Subject: [pve-devel] applied: [PATCH storage] extract backup config: less precise matching for broken pipe detection
Date: Tue, 6 Jul 2021 17:49:10 +0200	[thread overview]
Message-ID: <5739cae5-409f-10fc-9f48-d7661ad325ee@proxmox.com> (raw)
In-Reply-To: <20210706134729.84973-1-f.ebner@proxmox.com>

On 06.07.21 15:47, Fabian Ebner wrote:
> Extracting the config for zstd compressed vma files was broken:
>     Failed to extract config from VMA archive: zstd: error 70 : Write
>     error : cannot write decoded block : Broken pipe (500)
> since the error message changed and wouldn't match anymore.
> 
> Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
> ---
> 
> Hotfix for now, isn't there a better way to properly handle this?


meh, properly handling it is a bit of a PITA and that's why we landed here,
which, short of style fixing in the output like with zstd here, served us
surprisingly well.

Properly would probably mean one of:
* make the vma tool understand the compressions, adding in quite some libraries
  for that single use case, so not too ideal..
* saving the config in some other way, e.g., outside of the archive, so that we
  either reverse the pipe direction (vma gets config blob and then decompresses
  it) or avoid compression for the, rather small config file completely
* adding a control fd to VMA where it can tell that it closed OK, that way we
  could ignore any error if we get an OK written from vma to that FD.
  That wouldn't sound to bad actually, but did not really thought it out..

>  PVE/Storage.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

for now that'll do, applied, thanks!




      reply	other threads:[~2021-07-06 15:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-06 13:47 [pve-devel] " Fabian Ebner
2021-07-06 15:49 ` 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=5739cae5-409f-10fc-9f48-d7661ad325ee@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 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