A data storage library utilizes library-local features to regulate access
to shared read/write drives among multiple hosts, and thereby avoid the
need for arbitrating host software. The library includes multiple data
storage media, multiple data storage media slots, multiple read/write
drives, and a library controller. The slots are originally partitioned
into multiple logical libraries. Normally, the library shares the
read/write drives among all hosts. However, when a host submits a request
to unload a cartridge from a read/write drive, the library only honors
that request if the host has access rights to the logical library from
where the cartridge was originally loaded. Similarly, for each slot, the
controller prevents a requesting host from loading a cartridge from that
storage slot unless the requesting host has access rights to the logical
library that includes that storage slot.