]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/ZFSPoolPlugin.pm
add sparseinit to has_feature
[pve-storage.git] / PVE / Storage / ZFSPoolPlugin.pm
index bf8dca09a66c52e429cc1e35e6f098665efd0bf4..7011accfe868493bd265afc926e4667214c2f8b7 100644 (file)
@@ -41,7 +41,6 @@ sub options {
        sparse => { optional => 1 },
        nodes => { optional => 1 },
        disable => { optional => 1 },
-        maxfiles => { optional => 1 },
        content => { optional => 1 },
     };
 }
@@ -404,7 +403,7 @@ sub zfs_get_latest_snapshot {
 
     # abort rollback if snapshot is not the latest
     my @params = ('-t', 'snapshot', '-o', 'name', '-s', 'creation');
-    my $text = zfs_request($class, $scfg, undef, 'list', @params);
+    my $text = $class->zfs_request($scfg, undef, 'list', @params);
     my @snapshots = split(/\n/, $text);
 
     my $recentsnap;
@@ -468,7 +467,7 @@ sub volume_snapshot_delete {
 sub volume_snapshot_rollback {
     my ($class, $scfg, $storeid, $volname, $snap) = @_;
 
-    zfs_request($class, $scfg, undef, 'rollback', "$scfg->{pool}/$volname\@$snap");
+    $class->zfs_request($scfg, undef, 'rollback', "$scfg->{pool}/$volname\@$snap");
 }
 
 sub volume_rollback_is_possible {
@@ -487,7 +486,7 @@ sub activate_storage {
 
     my @param = ('-o', 'name', '-H');
 
-    my $text = zfs_request($class, $scfg, undef, 'zpool_list', @param);
+    my $text = $class->zfs_request($scfg, undef, 'zpool_list', @param);
 
     # Note: $scfg->{pool} can include dataset <pool>/<dataset>
     my $pool = $scfg->{pool};
@@ -578,6 +577,7 @@ sub volume_has_feature {
        clone => { base => 1},
        template => { current => 1},
        copy => { base => 1, current => 1},
+       sparseinit => { base => 1, current => 1},
     };
 
     my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =