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