Platform SDK: Removable Storage Manager |
Units of media store information. Each unit of media, or medium, also referred to as a "cartridge", is of a certain type, such as 8mm tape, magnetic disk, optical disk, or CD-ROM.
Most types of media have a single side. For example, a tape must always be oriented in a certain way. When the tape is placed in a drive, all of its data is accessible. Some types of media, such as magneto-optic (MO) disks, have two sides. An MO disk has an "A" side and a "B" side. When an MO disk is placed in a drive with the "A" side up, then the "A" side is accessible and the "B" side is not. To access the "B" side, the disk must be inserted with the "B" side up.
Removable Storage Manager represents media physically and logically. Physical media are the tangible media that are inserted and removed from libraries and mounted in drives.
When an application needs to access data on a cartridge, Removable Storage Manager generates a logical identifier (ID) that allows the application to request the data on that cartridge. Since access to the data occurs only through that ID, Removable Storage Manager can manage the physical location of the data. For example, if the original cartridge begins to fail, Removable Storage Manager can move the data to a new cartridge without having to notify the application.
Physical media and the sides they contain are tracked in Removable Storage Manager and can take on various states as they are entered into a library and used. For more information about media and side states, see Media Identification and Naming, media, and media pools.
Removable Storage Manager provides the infrastructure necessary to share media among various applications. Removable Storage Manager ensures that all media are used in such a way as to preserve the data they contain. Removable Storage Manager accomplishes this by identifying and verifying the identity of each cartridge. For more information about how Removable Storage Manager verifies the identity of media, see Media Identification and Naming.