(go to: table of contents, index, list of vms_sys, prev: MOD_IDENT, next: NUMTIM)
None
Arguments:
special notes about some item codes:
It requires a descriptor containing
a Universal Character Sequence (UCS) defined by ISO 2022
and used when mounting an ISO 9660 CD-ROM.
This is described in the 'OpenVMS System Manager's Manual'.
Examples:
MOUNT - Mount Volume
Mounts a tape or disk volume, or a volume set.
17-JAN-1999 ZE.
Format:
vms_sys.mount (itmlst)
Returns:
>>> import vms_sys
>>> import vms_mntdef
>>> l_flags0 = vms_mntdef.MNT_M_MESSAGE + \
... vms_mntdef.MNT_M_NOASSIST + \
... vms_mntdef.MNT_M_NOREBUILD + \
... vms_mntdef.MNT_M_SYSTEM
>>> l_flags1 = vms_mntdef.MNT2_M_SUBSYSTEM
>>> q_flags = (l_flags0,l_flags1)
>>> itmlst = ( \
... ('MNT$_DEVNAM', 'DKA0:'),
... ('MNT$_FLAGS', q_flags),
... ('MNT$_LOGNAM', 'DISK0_DEVNAM'),
... ('MNT$_VOLNAM', 'D0') # label
... )
>>> vms_sys.mount(itmlst)
{'status': 1}
>>>
>>> vms_sys.getmsg(1)
('%SYSTEM-S-NORMAL, normal successful completion', (0, 0, 0, 0))
>>>
>>> vms_sys.mount(itmlst)
{'status': 7471212}
>>> vms_sys.getmsg(7471212)
('%MOUNT-F-DEVMOUNT, device is already mounted', (0, 0, 0, 0))
>>>
>>> vms_sys.dismou ('DKA0:')
>>> itmlst = ( \
('MNT$_DEVNAM', 'DKA0:'),
('MNT$_FLAGS', q_flags),
('MNT$_LOGNAM', 'DISK0_DEVNAM'),
('MNT$_VOLNAM', 'DX') # wrong label
)
>>> vms_sys.mount(itmlst)
>>> vms_sys.getmsg(7471372)
('%MOUNT-F-INCVOLLABEL, incorrect volume label', (0, 0, 0, 0))
>>>
@@ MOUNT - more examples, text
>>>
(go to: table of contents,
index,
list of vms_sys,
prev: MOD_IDENT,
next: NUMTIM)