aboutsummaryrefslogtreecommitdiffstats
path: root/perl.req
stat options
Period:
Authors:

Commits per author per week (path 'perl.req')

AuthorW16 2024W17 2024W18 2024W19 2024Total
Total00000
/x86_64-branch Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install/network/smbnfs.pm
blob: 528a87be2c5bab3b33899fea6371a2e2db706bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package network::smbnfs; # $Id$

use strict;
use diagnostics;

use fs;


sub new { 
    my ($class, $v) = @_;
    bless($v || {}, $class);
}

sub server_to_string {
    my ($_class, $server) = @_;
    $server->{name} || $server->{ip};
}
sub comment_to_string {
    my ($_class, $comment) = @_;
    $comment;
}
sub to_dev {
    my ($class, $e) = @_;
    $class->to_dev_raw($class->server_to_string($e->{server}), $e->{name} || $e->{ip});
}
sub to_string {
    my ($class, $e) = @_;
    my $comment = $class->comment_to_string($e->{comment});
    ($e->{name} || $e->{ip}) . ($comment ? " ($comment)" : '');
}

sub to_fullstring {
    my ($class, $e) = @_;
    my $comment = $class->comment_to_string($e->{comment});