Difference between revisions of "OS4X plugin os4xplugin oftp rename"

From OS4X
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Zweck ==
+
[[Category:Plugins]]
OFTP unterstützt für virt. Dateinamen nur einen kleinen Satz an Zeichen. Dieses Plugin verifiziert ob alle Zeichen des angegebenen virt. Filenamens OFTP-konform sind und führt ggf. folgende Änderungen durch:
 
*Bei Dateinamenlängen größer 26 wird der Name auf 26 Zeichen limitiert
 
*Alle Kleinbuchstaben werden in Großbuchstaben übersetzt
 
*Alle Unterstriche ("<code>_</code>") werden in Bindestriche / Minus ("<code>-</code>") transformiert
 
*Alle restlichen Zeichen, die nicht der Spezifikation entsprechen, werden in Bindestriche / Minus ("<code>-</code>") transformiert
 
  
== Voraussetzungen ==
+
== Purpose ==
 +
OFTP supported for virt. File names only contain a small set of characters. This plugin verifies whether all characters of the specified virt. Filenames are OFTP compliant and may make the following changes:*Bei Dateinamenlängen größer 26 wird der Name auf 26 Zeichen limitiert
 +
*All lowercase letters are translated to uppercase
 +
*All underscores ("<code>_</code>") are transformed into hyphens/minus ("<code>-</code>")
 +
*All remaining characters that do not conform to the specification are transformed into hyphens/minus ("<code>-</code>")
  
* Datei <code>/etc/os4x.conf</code> bzw. Konfigurationsdatei in der Umgebungsvariable <code>$OS4X_CFGFILE</code> definiert. Über die Datenbank, die hier konfiguriert ist, wird das Lizenzfile bezogen.  
+
== Requirements ==
 +
* File <code>/etc/os4x.conf</code> or configuration file referenced by environment variable <code>$OS4X_CFGFILE</code>. The temporary directory and the license file are obtained via the database that is configured here.
  
== Konfiguration ==
+
== Configuration ==
 
-
 
-
  
== Rückgabewerte ==
+
== Return codes ==
*0: alles OK
+
*0: everything OK
*1: Fehler beim Parsen des XMLs
+
*1: Number of parameters != 1; Config file <code>/etc/os4x.conf</code> not found; Config in database not readable; License not valid; XML file invalid

Latest revision as of 09:04, 29 July 2024


Purpose

OFTP supported for virt. File names only contain a small set of characters. This plugin verifies whether all characters of the specified virt. Filenames are OFTP compliant and may make the following changes:*Bei Dateinamenlängen größer 26 wird der Name auf 26 Zeichen limitiert

  • All lowercase letters are translated to uppercase
  • All underscores ("_") are transformed into hyphens/minus ("-")
  • All remaining characters that do not conform to the specification are transformed into hyphens/minus ("-")

Requirements

  • File /etc/os4x.conf or configuration file referenced by environment variable $OS4X_CFGFILE. The temporary directory and the license file are obtained via the database that is configured here.

Configuration

-

Return codes

  • 0: everything OK
  • 1: Number of parameters != 1; Config file /etc/os4x.conf not found; Config in database not readable; License not valid; XML file invalid