]> git.proxmox.com Git - proxmox-backup.git/blobdiff - pbs-tape/src/emulate_tape_writer.rs
update to proxmox-sys 0.2 crate
[proxmox-backup.git] / pbs-tape / src / emulate_tape_writer.rs
index c8f1cbef62364217074d7303a5a306ab9a2ce47e..04ad697e6f0eb0e1770511b95b91567c80aed06c 100644 (file)
@@ -39,7 +39,7 @@ impl <W: Write> BlockWrite for EmulateTapeWriter<W> {
     fn write_block(&mut self, buffer: &[u8]) -> Result<bool, io::Error> {
 
         if buffer.len() != PROXMOX_TAPE_BLOCK_SIZE {
-            proxmox::io_bail!("EmulateTapeWriter: got write with wrong block size ({} != {}",
+            proxmox_sys::io_bail!("EmulateTapeWriter: got write with wrong block size ({} != {}",
                               buffer.len(), PROXMOX_TAPE_BLOCK_SIZE);
         }
 
@@ -59,7 +59,7 @@ impl <W: Write> BlockWrite for EmulateTapeWriter<W> {
 
     fn write_filemark(&mut self) -> Result<(), std::io::Error> {
         if self.wrote_eof {
-            proxmox::io_bail!("EmulateTapeWriter: detected multiple EOF writes");
+            proxmox_sys::io_bail!("EmulateTapeWriter: detected multiple EOF writes");
         }
         // do nothing, just record the call
         self.wrote_eof = true;