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}); $class->to_dev($e) . ($comment ? " ($comment)" : ''); } sub to_fstab_entry_raw { my ($class, $e, $type) = @_; my $fs_entry = { device => $class->to_dev($e), type => $type }; fs::set_default_options($fs_entry); $fs_entry; } 1; 2007.1'>distro/mdv2007.1 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakboot
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-13 17:45:11 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-13 17:45:11 +0000
commit9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060 (patch)
tree3aed7a3f5417d4bdd2a37a4c82c5a8969a814a43 /perl-install/standalone/drakboot
parent0ba56cce3e0255f0ed2dec02f158f37b718c0e61 (diff)
downloaddrakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.tar
drakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.tar.gz
drakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.tar.bz2
drakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.tar.xz
drakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.zip