move worker_task.rs into proxmox-rest-server crate
Also moved pbs-datastore/src/task.rs to pbs-tools, which now depends on 'log'.
This commit is contained in:
		| @ -17,7 +17,7 @@ use crate::tools::disks::{ | ||||
| }; | ||||
| use crate::tools::systemd::{self, types::*}; | ||||
|  | ||||
| use crate::server::WorkerTask; | ||||
| use proxmox_rest_server::WorkerTask; | ||||
|  | ||||
| const BASE_MOUNT_DIR: &str = "/mnt/datastore/"; | ||||
|  | ||||
|  | ||||
| @ -15,7 +15,7 @@ use crate::tools::disks::{ | ||||
|     DiskUsageInfo, DiskUsageType, DiskManage, SmartData, | ||||
|     get_disks, get_smart_data, get_disk_usage_info, inititialize_gpt_disk, | ||||
| }; | ||||
| use crate::server::WorkerTask; | ||||
| use proxmox_rest_server::WorkerTask; | ||||
|  | ||||
| pub mod directory; | ||||
| pub mod zfs; | ||||
|  | ||||
| @ -19,7 +19,7 @@ use crate::tools::disks::{ | ||||
|     DiskUsageType, | ||||
| }; | ||||
|  | ||||
| use crate::server::WorkerTask; | ||||
| use proxmox_rest_server::WorkerTask; | ||||
|  | ||||
|  | ||||
| #[api( | ||||
|  | ||||
		Reference in New Issue
	
	Block a user