all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>,
	Shannon Sterz <s.sterz@proxmox.com>
Subject: [pbs-devel] applied: [PATCH proxmox-backup] fix #3336: datastore: remove group if the last snapshot is removed
Date: Wed, 2 Apr 2025 14:45:04 +0200	[thread overview]
Message-ID: <641baf02-b367-46ed-b6ce-0e23e7deb4ba@proxmox.com> (raw)
In-Reply-To: <20250327103414.37840-1-s.sterz@proxmox.com>

Am 27.03.25 um 11:34 schrieb Shannon Sterz:
> empty groups are not visible in the gui. this led to a confusing issue
> where users were unable to create a group because it already existed
> and was still owned by another user. resolve this issue by removing
> the group if its last snapshot is removed.
> 
> also fixes an issue where removing a group used the non-atomic
> `remove_dir_all()` function when destroying a group unconditionally.
> this could lead to two different threads suddenly holding a lock to
> the same group. make sure that the new locking mechanism is used,
> which prevents that, before removing the group. this is also a bit
> more conservative now, as it specifically removes the owner file and
> group directory separately to avoid accidentaly removing snapshots in
> case we made an oversight.
> 
> Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
> ---
>  pbs-datastore/src/backup_info.rs | 36 +++++++++++++++++++++++++++-----
>  pbs-datastore/src/datastore.rs   |  6 +++++-
>  2 files changed, 36 insertions(+), 6 deletions(-)
> 
>

applied, with tiny touch-ups to the commit message, i.e. one typo
(s/accidentaly/accidentally/) and while already at it, I added
uppercasing on sentence start, thanks!


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


      reply	other threads:[~2025-04-02 12:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-27 10:34 [pbs-devel] " Shannon Sterz
2025-04-02 12:45 ` 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=641baf02-b367-46ed-b6ce-0e23e7deb4ba@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    --cc=s.sterz@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