tape: further hierarchy improvements

This commit is contained in:
Dietmar Maurer 2021-01-21 17:25:32 +01:00
parent 37796ff73f
commit 645a044bf6
9 changed files with 11 additions and 11 deletions

View File

@ -21,7 +21,7 @@ use crate::{
ScsiTapeChanger, ScsiTapeChanger,
LinuxTapeDrive, LinuxTapeDrive,
}, },
tape::drive::{ tape::{
linux_tape_changer_list, linux_tape_changer_list,
check_drive_path, check_drive_path,
lookup_drive, lookup_drive,

View File

@ -16,7 +16,7 @@ use crate::{
LinuxTapeDrive, LinuxTapeDrive,
ScsiTapeChanger, ScsiTapeChanger,
}, },
tape::drive::{ tape::{
linux_tape_device_list, linux_tape_device_list,
check_drive_path, check_drive_path,
lookup_drive, lookup_drive,

View File

@ -18,7 +18,7 @@ use crate::{
tape::{ tape::{
TAPE_STATUS_DIR, TAPE_STATUS_DIR,
Inventory, Inventory,
drive::linux_tape_changer_list, linux_tape_changer_list,
changer::{ changer::{
OnlineStatusMap, OnlineStatusMap,
ElementStatus, ElementStatus,

View File

@ -47,7 +47,8 @@ use crate::{
Inventory, Inventory,
MediaCatalog, MediaCatalog,
MediaId, MediaId,
file_formats::{ linux_tape_device_list,
file_formats::{
MediaLabel, MediaLabel,
MediaSetLabel, MediaSetLabel,
}, },
@ -55,8 +56,7 @@ use crate::{
TapeDriver, TapeDriver,
LinuxTapeHandle, LinuxTapeHandle,
open_linux_tape_device, open_linux_tape_device,
linux_tape_device_list, media_changer,
media_changer,
required_media_changer, required_media_changer,
open_drive, open_drive,
}, },

View File

@ -19,9 +19,9 @@ use proxmox_backup::{
}, },
}, },
tape::{ tape::{
complete_changer_path,
drive::{ drive::{
media_changer, media_changer,
complete_changer_path,
}, },
}, },
config::{ config::{

View File

@ -17,7 +17,7 @@ use proxmox_backup::{
DRIVE_NAME_SCHEMA, DRIVE_NAME_SCHEMA,
}, },
}, },
tape::drive::complete_drive_path, tape::complete_drive_path,
config::drive::{ config::drive::{
complete_drive_name, complete_drive_name,
complete_changer_name, complete_changer_name,

View File

@ -18,9 +18,6 @@ pub use linux_tape::*;
mod mam; mod mam;
pub use mam::*; pub use mam::*;
mod linux_list_drives;
pub use linux_list_drives::*;
use anyhow::{bail, format_err, Error}; use anyhow::{bail, format_err, Error};
use ::serde::{Deserialize}; use ::serde::{Deserialize};
use serde_json::Value; use serde_json::Value;

View File

@ -26,6 +26,9 @@ pub use media_set::*;
mod inventory; mod inventory;
pub use inventory::*; pub use inventory::*;
mod linux_list_drives;
pub use linux_list_drives::*;
pub mod changer; pub mod changer;
pub mod drive; pub mod drive;