# SRS-02 — AtlasOS – Calypso VTL & Tape Bridge

Version: 1.0  
Target: Physical Tape Library LTO-8 (SAS / FC)  
Maximum Drives: 8  
Date: 2025

---

## 1. Purpose
This document defines requirements for managing and exporting **physical tape libraries** through iSCSI, allowing Bacula to access tape hardware without direct attachment.

---

## 2. Scope

### In Scope
- Tape changer and drive discovery
- Slot inventory and barcode handling
- Tape load and unload operations
- iSCSI export of changer and drives

### Out of Scope
- Virtual tape emulation
- Tape encryption workflows
- Tape duplication policies

---

## 3. Functional Requirements

### 3.1 Discovery
- Detect tape changer and drives via SCSI inquiry
- Group devices into a single logical library

### 3.2 Operations
- Perform slot inventory
- Load tape into drive
- Unload tape to slot
- Display drive state and errors

### 3.3 iSCSI Mapping
- LUN 0 mapped to changer
- LUN 1–8 mapped to tape drives
- Enforce single-initiator access

---

## 4. Non-Functional Requirements
- Operations must be asynchronous
- Prevent conflicting concurrent actions

---

## 5. Acceptance Criteria
1. Tape library is visible in Bacula.
2. Inventory and load/unload succeed.
3. No multi-initiator conflicts occur.
