public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: Re: [pbs-devel] [PATCH proxmox-backup 0/2] Introduce bitflags for overwrite
Date: Tue, 1 Aug 2023 12:37:04 +0200 (CEST)	[thread overview]
Message-ID: <356391961.2824.1690886224974@webmail.proxmox.com> (raw)
In-Reply-To: <20230607133027.202575-1-c.ebner@proxmox.com>

Please ignore this one, I sent a rebased and refactored v2.

Cheers,
Chris

> On 07.06.2023 15:30 CEST Christian Ebner <c.ebner@proxmox.com> wrote:
> 
>  
> When restoring a pxar archive to a target containing preexisting data,
> the `overwrite` flag allows to force recreation of file payloads.
> However, the current implementation does not allow for symlinks or
> hardlinks to be recreated.
> 
> These patches introduce the logic to overwrite symlinks and hardlinks for
> archive entries, if a directory entry with matching name is already
> present on the filesystem. An existing entry is unlinked and the
> symlink/hardlink created.
> 
> In order to allow a more fine grained control over the overwrite
> behaviour, the current overwrite flag is refactored to set all bits of a
> newly introduced bitflag. Further, optional parameters for individual bits
> controlling the overwriting of files, symlinks and hardlinks are
> created.
> 
> Christian Ebner (2):
>   fix: #4761: unlink existing entries for hard/symlinks when overwrite
>   fix: #4761: introduce overwrite bitflags for fine grained overwrites
> 
>  pbs-client/src/catalog_shell.rs   |  9 +++-
>  pbs-client/src/pxar/extract.rs    | 82 ++++++++++++++++++++++++++-----
>  pbs-client/src/pxar/mod.rs        |  2 +-
>  proxmox-backup-client/src/main.rs | 28 ++++++++++-
>  pxar-bin/src/main.rs              | 32 +++++++++++-
>  5 files changed, 135 insertions(+), 18 deletions(-)
> 
> -- 
> 2.39.2




      parent reply	other threads:[~2023-08-01 10:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-07 13:30 Christian Ebner
2023-06-07 13:30 ` [pbs-devel] [PATCH proxmox-backup 1/2] fix: #4761: unlink existing entries for hard/symlinks when overwrite Christian Ebner
2023-06-07 13:30 ` [pbs-devel] [PATCH proxmox-backup 2/2] fix: #4761: introduce overwrite bitflags for fine grained overwrites Christian Ebner
2023-08-01 10:37 ` Christian Ebner [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=356391961.2824.1690886224974@webmail.proxmox.com \
    --to=c.ebner@proxmox.com \
    --cc=pbs-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