sub cifs_mount : prototype($$$$$) {
my ($scfg, $storeid, $smbver, $user, $domain) = @_;
- my ($mountpoint, $server, $share) = $scfg->@{'path', 'server', 'share'};
+ my ($mountpoint, $server, $share, $options) = $scfg->@{'path', 'server', 'share', 'options'};
my $subdir = $scfg->{subdir} // '';
$server = "[$server]" if Net::IP::ip_is_ipv6($server);
}
push @$cmd, '-o', defined($smbver) ? "vers=$smbver" : "vers=default";
+ push @$cmd, '-o', $options if $options;
run_command($cmd, errmsg => "mount error");
}
'create-subdirs' => { optional => 1 },
bwlimit => { optional => 1 },
preallocation => { optional => 1 },
+ options => { optional => 1 },
};
}
description => "Server IP or DNS name.",
type => 'string', format => 'pve-storage-server',
},
- options => {
- description => "NFS mount options (see 'man nfs')",
- type => 'string', format => 'pve-storage-options',
- },
};
}
type => "string", format => "pve-dir-override-list",
optional => 1,
},
+ options => {
+ description => "NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs')",
+ type => 'string',
+ format => 'pve-storage-options',
+ optional => 1,
+ },
},
};