]> git.proxmox.com Git - proxmox-backup.git/commit
tape: move 'set_encryption' calls to the TapeDriver (and implementation)
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 22 Jan 2024 11:50:33 +0000 (12:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Jan 2024 12:11:17 +0000 (13:11 +0100)
commit1343dcaf011ee81941d9160e9f12e6c36ca69d50
tree3aabf7c8841f5526802cfe35fd5d2425cb168def
parent1dc0df339bf9909f2e8fa518bef12b379876620c
tape: move 'set_encryption' calls to the TapeDriver (and implementation)

namely everytime we know what the key for the tape has to be:
* after we write the MediaSetLabel
* after reading the MediaSetLabel

When handling data on tape, we always have to have the MediaSetLabel, so
we should always trigger one of these. Because of that, we should not be
able to forget to set the encryption mode.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api2/tape/drive.rs
src/api2/tape/restore.rs
src/tape/drive/lto/mod.rs
src/tape/drive/mod.rs
src/tape/pool_writer/mod.rs