From 5eab0272f030999d18c98086aea0235a7e0fa561 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 31 Jan 2013 07:47:02 +0100 Subject: [PATCH] add stubs for create_base and cone_image --- PVE/Storage/ISCSIDirectPlugin.pm | 11 +++++++++++ PVE/Storage/ISCSIPlugin.pm | 12 ++++++++++++ PVE/Storage/LVMPlugin.pm | 12 ++++++++++++ PVE/Storage/NexentaPlugin.pm | 11 +++++++++++ PVE/Storage/RBDPlugin.pm | 12 ++++++++++++ PVE/Storage/SheepdogPlugin.pm | 12 ++++++++++++ 6 files changed, 70 insertions(+) diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm index b648fd5..5457601 100644 --- a/PVE/Storage/ISCSIDirectPlugin.pm +++ b/PVE/Storage/ISCSIDirectPlugin.pm @@ -97,6 +97,17 @@ sub path { return ($path, $vmid, $vtype); } +sub create_base { + my ($class, $storeid, $scfg, $volname) = @_; + + die "can't create base images in iscsi storage\n"; +} + +sub clone_image { + my ($class, $scfg, $storeid, $volname, $vmid) = @_; + + die "can't clone images in iscsi storage\n"; +} sub alloc_image { my ($class, $storeid, $scfg, $vmid, $fmt, $name, $size) = @_; diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm index ac8384b..663ba45 100644 --- a/PVE/Storage/ISCSIPlugin.pm +++ b/PVE/Storage/ISCSIPlugin.pm @@ -283,6 +283,18 @@ sub path { return wantarray ? ($path, $vmid, $vtype) : $path; } +sub create_base { + my ($class, $storeid, $scfg, $volname) = @_; + + die "can't create base images in iscsi storage\n"; +} + +sub clone_image { + my ($class, $scfg, $storeid, $volname, $vmid) = @_; + + die "can't clone images in iscsi storage\n"; +} + sub alloc_image { my ($class, $storeid, $scfg, $vmid, $fmt, $name, $size) = @_; diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm index 6b12b62..77b5afe 100644 --- a/PVE/Storage/LVMPlugin.pm +++ b/PVE/Storage/LVMPlugin.pm @@ -234,6 +234,18 @@ sub path { return wantarray ? ($path, $vmid, $vtype) : $path; } +sub create_base { + my ($class, $storeid, $scfg, $volname) = @_; + + die "can't create base images in lvm storage\n"; +} + +sub clone_image { + my ($class, $scfg, $storeid, $volname, $vmid) = @_; + + die "can't clone images in lvm storage\n"; +} + sub alloc_image { my ($class, $storeid, $scfg, $vmid, $fmt, $name, $size) = @_; diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm index 9622548..3a4e3e2 100644 --- a/PVE/Storage/NexentaPlugin.pm +++ b/PVE/Storage/NexentaPlugin.pm @@ -205,6 +205,17 @@ sub path { return ($path, $vmid, $vtype); } +sub create_base { + my ($class, $storeid, $scfg, $volname) = @_; + + die "not implemented"; +} + +sub clone_image { + my ($class, $scfg, $storeid, $volname, $vmid) = @_; + + die "not implemented"; +} sub alloc_image { my ($class, $storeid, $scfg, $vmid, $fmt, $name, $size) = @_; diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 7f46329..a4060a7 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@ -194,6 +194,18 @@ sub path { return ($path, $vmid, $vtype); } +sub create_base { + my ($class, $storeid, $scfg, $volname) = @_; + + die "not implemented"; +} + +sub clone_image { + my ($class, $scfg, $storeid, $volname, $vmid) = @_; + + die "not implemented"; +} + sub alloc_image { my ($class, $storeid, $scfg, $vmid, $fmt, $name, $size) = @_; diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm index 455a378..f7def46 100644 --- a/PVE/Storage/SheepdogPlugin.pm +++ b/PVE/Storage/SheepdogPlugin.pm @@ -144,6 +144,18 @@ sub path { return ($path, $vmid, $vtype); } +sub create_base { + my ($class, $storeid, $scfg, $volname) = @_; + + die "not implemented"; +} + +sub clone_image { + my ($class, $scfg, $storeid, $volname, $vmid) = @_; + + die "not implemented"; +} + sub alloc_image { my ($class, $storeid, $scfg, $vmid, $fmt, $name, $size) = @_; -- 2.39.5