]> git.proxmox.com Git - pve-storage.git/commitdiff
add stubs for create_base and cone_image
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 31 Jan 2013 06:47:02 +0000 (07:47 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 31 Jan 2013 06:47:02 +0000 (07:47 +0100)
PVE/Storage/ISCSIDirectPlugin.pm
PVE/Storage/ISCSIPlugin.pm
PVE/Storage/LVMPlugin.pm
PVE/Storage/NexentaPlugin.pm
PVE/Storage/RBDPlugin.pm
PVE/Storage/SheepdogPlugin.pm

index b648fd513561296303b61a49f82a578af008bfae..545760114ab3f46e3b019104306d71205d83faf2 100644 (file)
@@ -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) = @_;
index ac8384be6587647b68323de4387c346eafdc34d8..663ba45944855ce42de461b06506adaa81ea437c 100644 (file)
@@ -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) = @_;
 
index 6b12b62994d0867eab4d7c2472b24755a32f13a6..77b5afe33da28ea0af6a7cf7d175a3b2a19c3ba6 100644 (file)
@@ -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) = @_;
 
index 962254805dcc91efdc991eadda84aa5cc7a2288e..3a4e3e20a23721e35dc844c738786018c558d783 100644 (file)
@@ -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) = @_;
index 7f46329b66de6f7453f7f7a1850c0ae9387edb2d..a4060a7d4fe82b67f8e8d1e4a760c901215ddcd0 100644 (file)
@@ -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) = @_;
 
index 455a378d256ebdff1d56d01df77cf635740f018c..f7def466b1de5656367a1b03219e503a88a9b10c 100644 (file)
@@ -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) = @_;