5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-02-03 13:47:16 +03:00

cifs: small line bloat reduction

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-02-07 15:55:55 +01:00
parent 362159a831
commit 97edd11f6b

View File

@ -16,9 +16,7 @@ use base qw(PVE::Storage::Plugin);
sub cifs_is_mounted : prototype($$) {
my ($scfg, $mountdata) = @_;
my $mountpoint = $scfg->{path};
my $server = $scfg->{server};
my $share = $scfg->{share};
my ($mountpoint, $server, $share) = $scfg->@{'path', 'server', 'share'};
my $subdir = $scfg->{subdir} // "/";
$server = "[$server]" if Net::IP::ip_is_ipv6($server);
@ -71,9 +69,7 @@ sub get_cred_file {
sub cifs_mount : prototype($$$$$) {
my ($scfg, $storeid, $smbver, $user, $domain) = @_;
my $mountpoint = $scfg->{path};
my $server = $scfg->{server};
my $share = $scfg->{share};
my ($mountpoint, $server, $share) = $scfg->@{'path', 'server', 'share'};
my $subdir = $scfg->{subdir} // "/";
$server = "[$server]" if Net::IP::ip_is_ipv6($server);