]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/LVMPlugin.pm
use chattr to set immutable flag on base images
[pve-storage.git] / PVE / Storage / LVMPlugin.pm
index ab5505a178e1601f6cec0f5b209e649c366640b7..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) = @_;
 
@@ -246,7 +258,7 @@ sub alloc_image {
 
     my $vg = $scfg->{vgname};
 
-    die "no such volume gruoup '$vg'\n" if !defined ($vgs->{$vg});
+    die "no such volume group '$vg'\n" if !defined ($vgs->{$vg});
 
     my $free = int($vgs->{$vg}->{free});
 
@@ -432,4 +444,16 @@ sub volume_snapshot_rollback {
     die "lvm snapshot rollback is not implemented";
 }
 
+sub volume_snapshot_delete {
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
+
+    die "lvm snapshot delete is not implemented";
+}
+
+sub volume_has_feature {
+    my ($class, $scfg, $feature, $storeid, $volname, $snapname, $running) = @_;
+
+    return undef;
+}
+
 1;