
m
mediainit(1) | mediainit(1) |
Some applications may require that a ®le system be placed on the media before use. mediainit does not create a ®le system; it only prepares media for writing and reading. If such a ®le system is required, other utilities such as newfs, lifinit, or mkfs must be invoked after running mediainit (see newfs(1M), li®nit(1), and mkfs(1M)).
RETURN VALUE
mediainit returns one of the following values:
0Successful completion.
1A
2A
ERRORS
Appropriate error messages are printed on standard error during execution of mediainit.
WARNINGS
For a device that contains multiple units on a single controller, each unit can be initialized independently from any other unit. It should be noted, however, that mediainit requires that there be no other processes accessing the device before initialization begins, regardless of which unit is being initialized. If there are accesses currently in progress, mediainit aborts.
Aborting mediainit is likely to leave the medium in a corrupt state, even if it was previously initialized. To recover, the initialization must be restarted.
During the initialization process, open() rejects all other accesses to the device being initialized, producing the error EACCES (see open(2)).
DEPENDENCIES
Series 800
Partitioning of DDS tape media
AUTHOR
mediainit was developed by HP.
SEE ALSO
li®nit(1), mkfs(1M), newfs(1M).
Section 1−526 | − 3 − |