all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Demayl <denis.kanchev@storpool.com>
To: pve-devel@lists.proxmox.com
Subject: [Add group snapshots 1/4] plugin: add volumes_atomic_snapshot
Date: Tue,  1 Dec 2026 16:19:06 +0200	[thread overview]
Message-ID: <20261201141918.35872-2-denis.kanchev@storpool.com> (raw)
In-Reply-To: <20261201141918.35872-1-denis.kanchev@storpool.com>

May be implemented if the underlying storage supports atomic snapshots.
Activating atomic_snapshots as a feature in a plugin
and atomic_snapshot as a volume feature for all volumes,
will call volumes_atomic_snapshot. It has 3 parameters
1. Hash scfg - storage configuration
2. Array[Hash] volumes_list - [{name=>'',storeid=>'',..}]
3. Str snapshot_name

Signed-off-by: Demayl <denis.kanchev@storpool.com>
---
 src/PVE/Storage.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PVE/Storage.pm b/src/PVE/Storage.pm
index c77a675..b8c1c24 100755
--- a/src/PVE/Storage.pm
+++ b/src/PVE/Storage.pm
@@ -507,6 +507,13 @@ sub volume_snapshot {
     }
 }
 
+sub volumes_atomic_snapshot {
+    my ($scfg, $voldata, $snapname, $storage_type) = @_;
+    my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
+
+    $plugin->volumes_atomic_snapshot($scfg, $voldata, $snapname);
+}
+
 sub volume_snapshot_rollback {
     my ($cfg, $volid, $snap) = @_;
 
-- 
2.53.0




  reply	other threads:[~2026-12-01 14:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 14:19 [Add group snapshots 0/4] Adds support for atomic snapshots Demayl
2026-12-01 14:19 ` Demayl [this message]
2026-12-01 14:19 ` [Add group snapshots 2/4] snapshot: add " Demayl
2026-12-01 14:19 ` [Add group snapshots 3/4] snapshot: add atomic_snapshot Demayl
2026-12-01 14:19 ` [Add group snapshots 4/4] ui: add atomic snapshot type when creating a snapshot Demayl
2026-12-01 16:19 ` [Add group snapshots 0/4] Adds support for atomic snapshots DERUMIER, Alexandre

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=20261201141918.35872-2-denis.kanchev@storpool.com \
    --to=denis.kanchev@storpool.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