Skip to main content

btrfs_cli/rescue/
fix_data_checksum.rs

1use crate::{RunContext, Runnable};
2use anyhow::Result;
3use clap::Parser;
4use std::path::PathBuf;
5
6/// Fix data checksum mismatches
7#[derive(Parser, Debug)]
8pub struct RescueFixDataChecksumCommand {
9    /// Device to operate on
10    device: PathBuf,
11
12    /// Readonly mode, only report errors without repair
13    #[clap(short, long)]
14    readonly: bool,
15
16    /// Interactive mode, ignore the error by default
17    #[clap(short, long)]
18    interactive: bool,
19
20    /// Update csum item using specified mirror
21    #[clap(short, long)]
22    mirror: Option<u32>,
23}
24
25impl Runnable for RescueFixDataChecksumCommand {
26    fn run(&self, _ctx: &RunContext) -> Result<()> {
27        todo!("implement rescue fix-data-checksum")
28    }
29}