mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-07 11:27:52 +00:00
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:
parent
6de1899bb1
commit
69a680e54b
@ -63,7 +63,7 @@ impl<R: BlockRead> BlockedReader<R> {
|
|||||||
fn check_buffer(buffer: &BlockHeader, seq_nr: u32) -> Result<(usize, bool), std::io::Error> {
|
fn check_buffer(buffer: &BlockHeader, seq_nr: u32) -> Result<(usize, bool), std::io::Error> {
|
||||||
if buffer.magic != PROXMOX_TAPE_BLOCK_HEADER_MAGIC_1_0 {
|
if buffer.magic != PROXMOX_TAPE_BLOCK_HEADER_MAGIC_1_0 {
|
||||||
proxmox_lang::io_bail!(
|
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"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user