more api type cleanups: avoid re-exports

This commit is contained in:
Dietmar Maurer
2021-09-10 12:25:32 +02:00
parent e384f16a19
commit 6227654ad8
45 changed files with 245 additions and 290 deletions

View File

@ -23,11 +23,7 @@ use proxmox::{
},
};
use crate::api2::types::{
SLOT_ARRAY_SCHEMA,
ScsiTapeChanger,
LtoTapeDrive,
};
use pbs_api_types::{SLOT_ARRAY_SCHEMA, ScsiTapeChanger, LtoTapeDrive};
/// Changer element status.
///

View File

@ -1,9 +1,9 @@
use anyhow::Error;
use pbs_tools::run_command;
use pbs_api_types::ScsiTapeChanger;
use crate::{
api2::types::ScsiTapeChanger,
tape::changer::{
MtxStatus,
mtx::parse_mtx_status,

View File

@ -6,11 +6,9 @@ use anyhow::{bail, Error};
use proxmox::tools::Uuid;
use proxmox::api::section_config::SectionConfigData;
use pbs_api_types::{VirtualTapeDrive, ScsiTapeChanger};
use crate::{
api2::types::{
VirtualTapeDrive,
ScsiTapeChanger,
},
tape::{
Inventory,
changer::{

View File

@ -11,6 +11,8 @@ use endian_trait::Endian;
use proxmox::tools::io::ReadExt;
use pbs_api_types::ScsiTapeChanger;
use crate::{
tape::{
changer::{
@ -28,7 +30,6 @@ use crate::{
scsi_ascii_to_string,
scsi_inquiry,
},
api2::types::ScsiTapeChanger,
};
const SCSI_CHANGER_DEFAULT_TIMEOUT: usize = 60*5; // 5 minutes