OS4X plugin os4xplugin oftp rename

From OS4X
Jump to navigation Jump to search


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