summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm
diff options
context:
space:
mode:
authorOliver Tappe2007-05-29 22:06:16 +0200
committerOliver Tappe2007-05-29 22:06:16 +0200
commitd561c9b1d1440185a5000c3d4df4395ba6de9a22 (patch)
treed1b2227c7e47e8479c52bcb0e8490aa4bd5d1cb8 /installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm
parent* (hopefully) fixed problem with respect to wget repeatedly failing with (diff)
downloadcore-d561c9b1d1440185a5000c3d4df4395ba6de9a22.tar.gz
core-d561c9b1d1440185a5000c3d4df4395ba6de9a22.tar.xz
core-d561c9b1d1440185a5000c3d4df4395ba6de9a22.zip
* changed handling of exports to drop support for having more than one
export for a given vendor-OS with the same export-type * exports are now named according to the pattern <vendor-os>-<export-type> (instead of <vendor-os>-<X> where X was a letter) * change slxos-export to show the export-config-info after updating an export, too (not only after creating a new export). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1108 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm')
-rw-r--r--installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm23
1 files changed, 11 insertions, 12 deletions
diff --git a/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm b/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm
index f721d6d2..bb26a619 100644
--- a/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm
+++ b/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm
@@ -113,7 +113,6 @@ sub addExportToConfigDB
= $openslxDB->incrementGlobalCounter('next-nbd-server-port');
my $res = $openslxDB->addExport($export);
- $self->showNbdParams($export) if $res;
return $res;
}
@@ -138,6 +137,17 @@ sub requiredFSMods
return 'nbd squashfs';
}
+sub showExportConfigInfo
+{
+ my $self = shift;
+ my $export = shift;
+
+ print (('#' x 80)."\n");
+ print _tr("Please make sure you start a corresponding nbd-server:\n\t%s\n",
+ "nbd-server $export->{port} $self->{engine}->{'export-path'} -r");
+ print (('#' x 80)."\n");
+}
+
################################################################################
### implementation methods
################################################################################
@@ -182,17 +192,6 @@ sub createSquashFS
}
}
-sub showNbdParams
-{
- my $self = shift;
- my $export = shift;
-
- print (('#' x 80)."\n");
- print _tr("Please make sure you start a corresponding nbd-server:\n\t%s\n",
- "nbd-server $export->{port} $self->{engine}->{'export-path'} -r");
- print (('#' x 80)."\n");
-}
-
sub mapRsyncFilter2Regex
{
my $sourcePath = shift;