Mount
Index Prev Next
Synopsis
DEVICE/M, FROM/K, SHUTDOWN/S
Function
Creates a DOS device entry from a mount definition. SHUTDOWN
requests handler termination without removing the device entry.
Result
On CLI success RETURN_OK; on CLI failure RETURN_FAIL.
An already mounted device is skipped in a batch. An optional
ACTIVATE failure does not undo a successfully registered device.
Details are reported with the DOS error text when available.
Example
Mount DEVS:FAT0
(Mounts a FAT device defined in the DEVS:FAT0 file)
Mount AUX0: SHUTDOWN
(Tells the handler serving AUX0: to go away. AUX0: stays
mounted and the handler is restarted when it is next used.)
Notes
Unknown icon ToolTypes are ignored. Errors in recognized mount
options and allocation failures remain fatal.
SHUTDOWN leaves the device mounted, so the handler is started
again the next time the device is accessed. Removing the device
node is what Assign DISMOUNT does, so shutting a device down
completely takes both:
Mount HD5: SHUTDOWN
Assign HD5: DISMOUNT
Not every handler can be shut down. One that is still in use, or
that does not implement ACTION_DIE, reports an error and keeps
running.