tape: cleanup: s/transfer/transfer_media/, avoid compiler warnings

This commit is contained in:
Dietmar Maurer
2021-01-10 12:18:30 +01:00
parent edb90f6afa
commit c92e3832bf
4 changed files with 8 additions and 8 deletions

View File

@ -393,7 +393,7 @@ impl MediaChange for VirtualTapeHandle {
Ok(MtxStatus { drives, slots })
}
fn transfer(&mut self, from: u64, to: u64) -> Result<(), Error> {
fn transfer_media(&mut self, _from: u64, _to: u64) -> Result<(), Error> {
bail!("medfia tranfer is not implemented!");
}
@ -456,9 +456,9 @@ impl MediaChange for VirtualTapeDrive {
handle.status()
}
fn transfer(&mut self, from: u64, to: u64) -> Result<(), Error> {
fn transfer_media(&mut self, from: u64, to: u64) -> Result<(), Error> {
let mut handle = self.open()?;
handle.transfer(from, to)
handle.transfer_media(from, to)
}
fn load_media_from_slot(&mut self, slot: u64) -> Result<(), Error> {