add pbs-tools subcrate
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -409,7 +409,7 @@ impl TapeDriver for LtoTapeHandle {
|
||||
}
|
||||
|
||||
let output = if let Some((fingerprint, uuid)) = key_fingerprint {
|
||||
let fingerprint = crate::tools::format::as_fingerprint(fingerprint.bytes());
|
||||
let fingerprint = pbs_tools::format::as_fingerprint(fingerprint.bytes());
|
||||
run_sg_tape_cmd("encryption", &[
|
||||
"--fingerprint", &fingerprint,
|
||||
"--uuid", &uuid.to_string(),
|
||||
|
@ -6,8 +6,9 @@ use std::fs::File;
|
||||
use anyhow::{bail, Error};
|
||||
use nix::dir::Dir;
|
||||
|
||||
use pbs_tools::fs::lock_dir_noblock_shared;
|
||||
|
||||
use crate::{
|
||||
tools::fs::lock_dir_noblock_shared,
|
||||
backup::{
|
||||
DataStore,
|
||||
BackupDir,
|
||||
|
@ -3,13 +3,14 @@ use std::collections::HashMap;
|
||||
|
||||
use anyhow::{bail, Error};
|
||||
|
||||
use pbs_tools::fs::scan_subdir;
|
||||
|
||||
use crate::{
|
||||
api2::types::{
|
||||
DeviceKind,
|
||||
OptionalDeviceIdentification,
|
||||
TapeDeviceInfo,
|
||||
},
|
||||
tools::fs::scan_subdir,
|
||||
};
|
||||
|
||||
lazy_static::lazy_static!{
|
||||
|
@ -8,6 +8,8 @@ use std::collections::{HashSet, HashMap};
|
||||
use anyhow::{bail, format_err, Error};
|
||||
use endian_trait::Endian;
|
||||
|
||||
use pbs_tools::fs::read_subdir;
|
||||
|
||||
use proxmox::tools::{
|
||||
Uuid,
|
||||
fs::{
|
||||
@ -22,7 +24,6 @@ use proxmox::tools::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
tools::fs::read_subdir,
|
||||
backup::BackupDir,
|
||||
tape::{
|
||||
MediaId,
|
||||
|
Reference in New Issue
Block a user