rename pbs-systemd to proxmox-systemd

This commit is contained in:
Dietmar Maurer
2021-09-21 09:33:51 +02:00
committed by Thomas Lamprecht
parent 48109c5354
commit 84af82e8cf
26 changed files with 41 additions and 41 deletions

View File

@ -606,7 +606,7 @@ pub struct DeviceLockGuard(std::fs::File);
// Uses systemd escape_unit to compute a file name from `device_path`, the try
// to lock `/var/lock/<name>`.
fn open_device_lock(device_path: &str) -> Result<std::fs::File, Error> {
let lock_name = pbs_systemd::escape_unit(device_path, true);
let lock_name = proxmox_systemd::escape_unit(device_path, true);
let mut path = std::path::PathBuf::from(crate::tape::DRIVE_LOCK_DIR);
path.push(lock_name);

View File

@ -39,7 +39,7 @@ use proxmox::tools::{
},
};
use pbs_systemd::time::compute_next_event;
use proxmox_systemd::time::compute_next_event;
use pbs_config::BackupLockGuard;
use pbs_api_types::{MediaSetPolicy, RetentionPolicy, MediaStatus, MediaLocation};

View File

@ -18,7 +18,7 @@ use pbs_api_types::{
Fingerprint, MediaStatus, MediaLocation, MediaSetPolicy, RetentionPolicy,
MediaPoolConfig,
};
use pbs_systemd::time::compute_next_event;
use proxmox_systemd::time::compute_next_event;
use pbs_config::BackupLockGuard;
use crate::tape::{

View File

@ -5,7 +5,7 @@
use std::path::PathBuf;
use anyhow::Error;
use pbs_systemd::time::parse_time_span;
use proxmox_systemd::time::parse_time_span;
use pbs_api_types::{RetentionPolicy, MediaSetPolicy};
use crate::tape::{Inventory, MediaPool};

View File

@ -102,8 +102,8 @@ fn test_media_expire_time() -> Result<(), Error> {
let sl2= MediaSetLabel::with_data("p1", Uuid::generate(), 0, ctime + 120, None);
let tape2_uuid = inventory.generate_used_tape("tape2", sl2, 0);
let event = pbs_systemd::time::parse_calendar_event("*:0/2")?;
let span = pbs_systemd::time::parse_time_span("120 seconds")?;
let event = proxmox_systemd::time::parse_calendar_event("*:0/2")?;
let span = proxmox_systemd::time::parse_time_span("120 seconds")?;
let pool = MediaPool::new(
"p1",