5.7 AUTOINIT (Automatic creation of empty tape files)

5.7.1 Function

The AUTOINIT system parameter controls the automatic creation of empty tape files. AUTOINIT handles
the "file not found" condition for a specified tape file. It controls if DEVINIT returns a "file not found" error
or creates an empty tape file if the tape file could not be found. The default for AUTOINIT is OFF.

5.7.2 Syntax

Descriptive

OFF

Diagram


¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ




OFF






5.7.3 Parameter

ON

When AUTOINIT is set ON, DEVINIT will initialize a blank, non-labeled tape if the
specified tape file is not found. Next, DEVINIT writes two tapemarks, rewinds the
tape and positions the tape to the beginning.

OFF

When AUTOINIT is set OFF (which is the default), DEVINIT will return a "file not
found" error if the specified tape file is not found.

5.7.4 Examples

Example 1:

Switch on the automatic creation of empty tape files.

AUTOINIT ON

5.8 AUTOMOUNT (Tape automount root directory)

5.8.1 Function

Specifies the host system directory where the guest is allowed or not allowed to automatically load virtual
tape volumes from. Prefix allowable directories with a '+' (plus) sign and unallowable directories with a '-'
(minus) sign. The default prefix if neither is specified is the '+' sign (an allowable directory).

All host system virtual tape volumes to be automounted by the guest must reside within one of the speci-
fied allowable host system directories or any of its subdirectories while not also being within any of the
specified unallowable directories or any of their subdirectories, in order for the guest-invoked automount
to be accepted.

Specifying a disallowed automount directory does not preclude the Hercules operator from manually
mounting any file via the DEVINIT console command - even one in a currently defined disallowed auto-
mount directory. The AUTOMOUNT statement only controls guest-invoked automatic tape mounts and
not manual tape mounts performed by the Hercules operator.

All directories must be specified on separate statements, but as many statements as needed may be
specified in order to describe the desired allowable/unallowable directories layout. For convenience, an
AUTOMOUNT console command is also provided to dynamically add new or remove existing automount
directories at any time.

The automount feature is activated whenever you specify at least one allowable or unallowable directory.
If only unallowable directories are specified, then the current directory becomes the only defined allow-
able automount directory by default.

All specified directories are always resolved to fully-qualified absolute directory paths before being saved.

Caution: Enabling this feature may have security consequences depending on which allowable host
system directories you specify as well as how your guest operating system enforces authorized use of the
Set Diagnose (X'4B') channel command code.

Refer to the description of the virtual tape device 'NOAUTOMOUNT' option for more information.

5.8.2 Syntax

Descriptive

[
+ - ]directory


or

directory directory

Diagram




~¬¬¬ + ¬¬¬®

¦¬¬¬¬¬¬¬¬¬¦¬¬¬ directory ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ




-


or

Previous Page Next Page