tape reader: improve error for unknown magic number

ancient LTO version can cause this too (got some forum reports)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-06-29 12:09:37 +02:00
parent 6de1899bb1
commit 69a680e54b

View File

@ -63,7 +63,7 @@ impl<R: BlockRead> BlockedReader<R> {
fn check_buffer(buffer: &BlockHeader, seq_nr: u32) -> Result<(usize, bool), std::io::Error> {
if buffer.magic != PROXMOX_TAPE_BLOCK_HEADER_MAGIC_1_0 {
proxmox_lang::io_bail!(
"detected tape block with wrong magic number - not written by proxmox tape"
"got tape block with unknown magic number - not written by PBS or incompatible LTO version"
);
}