From 9aa58f01430a338770750039e707b8d2d5e9b139 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 18 Dec 2020 16:57:49 +0100 Subject: [PATCH] cleanup: rename mtfsf into forward_space_count_files --- src/tape/drive/linux_tape.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tape/drive/linux_tape.rs b/src/tape/drive/linux_tape.rs index 8372c155..84c17a0b 100644 --- a/src/tape/drive/linux_tape.rs +++ b/src/tape/drive/linux_tape.rs @@ -193,7 +193,7 @@ impl LinuxTapeHandle { Ok(()) } - fn mtfsf(&mut self, count: i32) -> Result<(), Error> { + fn forward_space_count_files(&mut self, count: i32) -> Result<(), Error> { let cmd = mtop { mt_op: MTCmd::MTFSF, mt_count: count, }; @@ -368,7 +368,7 @@ impl TapeDriver for LinuxTapeHandle { let file_number = self.current_file_number()?; if file_number != 1 { self.rewind()?; - self.mtfsf(1)?; // skip label + self.forward_space_count_files(1)?; // skip label } let file_number = self.current_file_number()?;