]> git.proxmox.com Git - proxmox-backup.git/commit
fix #5229: tape: remove max sequence number limit
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 12 Feb 2024 12:27:34 +0000 (13:27 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Feb 2024 13:05:14 +0000 (14:05 +0100)
commit1958d9f483a3479eecf00cc3ae914a021bd54889
tree6e5bfae1dd3b1178d5063e2fd24bab5153bcfd8b
parente0222ce83c28397d493c70825e873943c1223c67
fix #5229: tape: remove max sequence number limit

The idea was to limit the number of tapes in a media set, but this was
not enforced when adding a medium to a media set, only on read/parsing
the inventory. With that, it is possible to create media sets greater
than the limit which in turn blocks access to most functions via
api/cli/gui due to the check.

Instead of enforcing an arbitrary limit, simply warn on creation when
the media-set is very large (20).

To restore the whole media set, the time taken would still be at least 38
hours for LTO-4 and 250 hours for LTO-9.

We already have a section in the docs where we tell about the
disadvantages of large media sets.

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