5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-02-08 05:57:44 +03:00
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-06-30 10:18:32 +02:00
parent 4a2bb3e6cd
commit b58dd1d413
3 changed files with 12 additions and 6 deletions

View File

@ -143,7 +143,9 @@ impl<R: AsyncRead + AsyncSeek + Unpin> FuseLoopSession<R> {
if let Err(err) = loopdev::unassign(&loopdev_path) {
log::warn!(
"cleanup: warning: could not unassign file {} from loop device {} - {}",
&fuse_path, &loopdev_path, err,
&fuse_path,
&loopdev_path,
err,
);
}
@ -153,13 +155,15 @@ impl<R: AsyncRead + AsyncSeek + Unpin> FuseLoopSession<R> {
if let Err(err) = remove_file(&fuse_path) {
log::warn!(
"cleanup: warning: could not remove temporary file {} - {}",
&fuse_path, err,
&fuse_path,
err,
);
}
if let Err(err) = remove_file(&pid_path) {
log::warn!(
"cleanup: warning: could not remove PID file {} - {}",
&pid_path, err,
&pid_path,
err,
);
}
};

View File

@ -100,7 +100,9 @@ async fn cleanup_map(map: &mut HashMap<String, VMState>) -> bool {
to_remove.push(name.clone());
log::warn!(
"VM '{}' (pid: {}, cid: {}) was not reachable, removing from map",
name, state.pid, state.cid
name,
state.pid,
state.cid
);
let _ = super::qemu_helper::try_kill_vm(state.pid);
}

View File

@ -1,9 +1,9 @@
use proxmox_router::{Router, SubdirMap};
use proxmox_router::list_subdirs_api_method;
use proxmox_router::{Router, SubdirMap};
use proxmox_sys::sortable;
pub mod influxdbudp;
pub mod influxdbhttp;
pub mod influxdbudp;
#[sortable]
const SUBDIRS: SubdirMap = &sorted!([