This commit is contained in:
junxiang Mu
2024-10-15 10:29:05 +08:00
parent 7723419142
commit e4f5ca7ea8
18 changed files with 2204 additions and 474 deletions
+39
View File
@@ -0,0 +1,39 @@
pub type HealScanMode = usize;
pub type HealItemType = String;
#[derive(Clone, Copy, Debug, Default)]
pub struct HealOpts {
pub recursive: bool,
pub dry_run: bool,
pub remove: bool,
pub recreate: bool,
pub scan_mode: HealScanMode,
pub update_parity: bool,
pub no_lock: bool,
pub pool: Option<usize>,
pub set: Option<usize>,
}
#[derive(Debug)]
struct HealDriveInfo {
uuid: String,
endpoint: String,
state: String,
}
#[derive(Debug)]
pub struct HealResultItem {
pub result_index: usize,
pub heal_item_type: HealItemType,
pub bucket: String,
pub object: String,
pub version_id: String,
pub detail: String,
pub parity_blocks: usize,
pub data_blocks: usize,
pub disk_count: usize,
pub set_count: usize,
pub before: Vec<HealDriveInfo>,
pub after: Vec<HealDriveInfo>,
pub object_size: usize,
}