]> git.proxmox.com Git - pve-storage.git/commitdiff
Remove unused functionality
authorMichael Rasmussen <mir@datanom.net>
Wed, 2 Oct 2013 20:13:37 +0000 (22:13 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Oct 2013 05:32:07 +0000 (07:32 +0200)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
PVE/Storage/ZFSPlugin.pm

index c8a47d29cee01197a580ea9422c49c7ea8f5ce98..c25d5ec26868c7e42311de093130eab9346dad47 100644 (file)
@@ -47,12 +47,7 @@ sub zfs_request {
        $zfscmd = 'zfs';
     }
 
-    if ($scfg->{sudo}) {
-       $zfscmd = 'sudo ' . $zfscmd;
-       $target = $scfg->{portal};
-    } else {
-       $target = 'root@' . $scfg->{portal};
-    }
+    $target = 'root@' . $scfg->{portal};
 
     my $cmd = [@ssh_cmd, $target, $zfscmd, $method, @params];
 
@@ -306,22 +301,10 @@ sub plugindata {
 
 sub properties {
     return {
-       chap => {
-           description => "chap",
-           type => 'string',
-       },
-       pwd => {
-           description => "password",
-           type => 'string',
-       },
        iscsiprovider => {
            description => "iscsi provider",
            type => 'string',
        },
-       sudo => {
-           description => "use sudo",
-           type => 'boolean',
-       },
     };
 }
 
@@ -332,11 +315,8 @@ sub options {
         portal => { fixed => 1 },
        target => { fixed => 1 },
         pool => { fixed => 1 },
-       chap => { optional => 1 },
-       pwd => { optional => 1 },
        blocksize => { fixed => 1 },
        iscsiprovider => { fixed => 1 },
-       sudo => { optional => 1 },
        content => { optional => 1 },
     };
 }