tape: further hierarchy improvements
This commit is contained in:
parent
37796ff73f
commit
645a044bf6
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,9 +19,9 @@ use proxmox_backup::{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
tape::{
|
tape::{
|
||||||
|
complete_changer_path,
|
||||||
drive::{
|
drive::{
|
||||||
media_changer,
|
media_changer,
|
||||||
complete_changer_path,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config::{
|
config::{
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue