Skip to main content

btrfs_cli/rescue/
chunk_recover.rs

1use crate::{Format, Runnable};
2use anyhow::Result;
3use clap::Parser;
4use std::path::PathBuf;
5
6/// Recover the chunk tree by scanning the devices one by one
7#[derive(Parser, Debug)]
8pub struct RescueChunkRecoverCommand {
9    /// Assume an answer of 'yes' to all questions
10    #[clap(short = 'y', long)]
11    pub yes: bool,
12
13    /// Device to recover
14    pub device: PathBuf,
15}
16
17impl Runnable for RescueChunkRecoverCommand {
18    fn run(&self, _format: Format, _dry_run: bool) -> Result<()> {
19        todo!("implement rescue chunk-recover")
20    }
21}