]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage.pm
plugin: add volume_snapshot_info function
[pve-storage.git] / PVE / Storage.pm
index e314bfc389163a2129b9713bbcc08e2d9e3e2aa5..f9582d0d9bc0e0f6ebe5fbb3862ecc4c6970d957 100755 (executable)
@@ -371,6 +371,15 @@ sub volume_has_feature {
     }
 }
 
+sub volume_snapshot_info {
+    my ($cfg, $volid) = @_;
+
+    my ($storeid, $volname) = parse_volume_id($volid);
+    my $scfg = storage_config($cfg, $storeid);
+    my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
+    return $plugin->volume_snapshot_info($scfg, $storeid, $volname);
+}
+
 sub volume_snapshot_list {
     my ($cfg, $volid) = @_;