diff --git a/src/tape/file_formats/multi_volume_writer.rs b/src/tape/file_formats/multi_volume_writer.rs index 8d51969e..d1b2c70b 100644 --- a/src/tape/file_formats/multi_volume_writer.rs +++ b/src/tape/file_formats/multi_volume_writer.rs @@ -69,7 +69,7 @@ impl <'a> TapeWrite for MultiVolumeWriter<'a> { } if self.writer.is_none() { - if self.header.part_number >= 255 { + if self.header.part_number == u8::MAX { proxmox_sys::io_bail!("multi-volume writer: too many parts"); } self.writer = Some(