tape: change code hierarchy to improve docs

This commit is contained in:
Dietmar Maurer
2021-01-21 17:12:01 +01:00
parent e1fdcb1678
commit 37796ff73f
20 changed files with 76 additions and 63 deletions

View File

@ -26,17 +26,17 @@ use crate::{
tape::{
TapeRead,
TapeWrite,
TapeAlertFlags,
Lp17VolumeStatistics,
read_mam_attributes,
mam_extract_media_usage,
read_tape_alert_flags,
read_volume_statistics,
set_encryption,
drive::{
linux_mtio::*,
LinuxTapeDrive,
TapeDriver,
linux_mtio::*,
TapeAlertFlags,
Lp17VolumeStatistics,
read_mam_attributes,
mam_extract_media_usage,
read_tape_alert_flags,
read_volume_statistics,
set_encryption,
},
file_formats::{
PROXMOX_TAPE_BLOCK_SIZE,

View File

@ -10,7 +10,7 @@ use proxmox::tools::io::ReadExt;
use crate::{
api2::types::MamAttribute,
tape::{
TapeAlertFlags,
drive::TapeAlertFlags,
sgutils2::SgRaw,
},
};

View File

@ -1,3 +1,5 @@
//! Tape drivers
mod virtual_tape;
mod linux_mtio;
@ -10,7 +12,8 @@ pub use volume_statistics::*;
mod encryption;
pub use encryption::*;
pub mod linux_tape;
mod linux_tape;
pub use linux_tape::*;
mod mam;
pub use mam::*;
@ -44,7 +47,6 @@ use crate::{
TapeWrite,
TapeRead,
MediaId,
MtxMediaChanger,
file_formats::{
PROXMOX_BACKUP_MEDIA_LABEL_MAGIC_1_0,
PROXMOX_BACKUP_MEDIA_SET_LABEL_MAGIC_1_0,
@ -54,6 +56,7 @@ use crate::{
},
changer::{
MediaChange,
MtxMediaChanger,
send_load_media_email,
},
},

View File

@ -15,10 +15,12 @@ use crate::{
tape::{
TapeWrite,
TapeRead,
MtxStatus,
DriveStatus,
ElementStatus,
changer::MediaChange,
changer::{
MediaChange,
MtxStatus,
DriveStatus,
ElementStatus,
},
drive::{
VirtualTapeDrive,
TapeDriver,