diff --git a/src/api2/config/changer.rs b/src/api2/config/changer.rs index c420dda1..c1e8c59e 100644 --- a/src/api2/config/changer.rs +++ b/src/api2/config/changer.rs @@ -21,7 +21,7 @@ use crate::{ ScsiTapeChanger, LinuxTapeDrive, }, - tape::drive::{ + tape::{ linux_tape_changer_list, check_drive_path, lookup_drive, diff --git a/src/api2/config/drive.rs b/src/api2/config/drive.rs index e48926a7..54601795 100644 --- a/src/api2/config/drive.rs +++ b/src/api2/config/drive.rs @@ -16,7 +16,7 @@ use crate::{ LinuxTapeDrive, ScsiTapeChanger, }, - tape::drive::{ + tape::{ linux_tape_device_list, check_drive_path, lookup_drive, diff --git a/src/api2/tape/changer.rs b/src/api2/tape/changer.rs index 4c1b57e9..eea6f479 100644 --- a/src/api2/tape/changer.rs +++ b/src/api2/tape/changer.rs @@ -18,7 +18,7 @@ use crate::{ tape::{ TAPE_STATUS_DIR, Inventory, - drive::linux_tape_changer_list, + linux_tape_changer_list, changer::{ OnlineStatusMap, ElementStatus, diff --git a/src/api2/tape/drive.rs b/src/api2/tape/drive.rs index 6e625905..1ffa6613 100644 --- a/src/api2/tape/drive.rs +++ b/src/api2/tape/drive.rs @@ -47,7 +47,8 @@ use crate::{ Inventory, MediaCatalog, MediaId, - file_formats::{ + linux_tape_device_list, + file_formats::{ MediaLabel, MediaSetLabel, }, @@ -55,8 +56,7 @@ use crate::{ TapeDriver, LinuxTapeHandle, open_linux_tape_device, - linux_tape_device_list, - media_changer, + media_changer, required_media_changer, open_drive, }, diff --git a/src/bin/proxmox_tape/changer.rs b/src/bin/proxmox_tape/changer.rs index a8dabf9c..db7a8b9c 100644 --- a/src/bin/proxmox_tape/changer.rs +++ b/src/bin/proxmox_tape/changer.rs @@ -19,9 +19,9 @@ use proxmox_backup::{ }, }, tape::{ + complete_changer_path, drive::{ media_changer, - complete_changer_path, }, }, config::{ diff --git a/src/bin/proxmox_tape/drive.rs b/src/bin/proxmox_tape/drive.rs index 2b442adf..da61ddcf 100644 --- a/src/bin/proxmox_tape/drive.rs +++ b/src/bin/proxmox_tape/drive.rs @@ -17,7 +17,7 @@ use proxmox_backup::{ DRIVE_NAME_SCHEMA, }, }, - tape::drive::complete_drive_path, + tape::complete_drive_path, config::drive::{ complete_drive_name, complete_changer_name, diff --git a/src/tape/drive/mod.rs b/src/tape/drive/mod.rs index 8c6d31d0..864658c8 100644 --- a/src/tape/drive/mod.rs +++ b/src/tape/drive/mod.rs @@ -18,9 +18,6 @@ pub use linux_tape::*; mod mam; pub use mam::*; -mod linux_list_drives; -pub use linux_list_drives::*; - use anyhow::{bail, format_err, Error}; use ::serde::{Deserialize}; use serde_json::Value; diff --git a/src/tape/drive/linux_list_drives.rs b/src/tape/linux_list_drives.rs similarity index 100% rename from src/tape/drive/linux_list_drives.rs rename to src/tape/linux_list_drives.rs diff --git a/src/tape/mod.rs b/src/tape/mod.rs index 18d86d71..43c33bfa 100644 --- a/src/tape/mod.rs +++ b/src/tape/mod.rs @@ -26,6 +26,9 @@ pub use media_set::*; mod inventory; pub use inventory::*; +mod linux_list_drives; +pub use linux_list_drives::*; + pub mod changer; pub mod drive;