do not wait for input on btrfs repair (#2500)

This commit is contained in:
Aiden McClelland
2023-11-07 09:21:32 -07:00
committed by GitHub
parent bf40a9ef6d
commit 748277aa0e

View File

@@ -23,6 +23,7 @@ pub async fn btrfs_check_repair(logicalname: impl AsRef<Path>) -> Result<Require
Command::new("btrfs") Command::new("btrfs")
.arg("check") .arg("check")
.arg("--repair") .arg("--repair")
.arg("--force")
.arg(logicalname.as_ref()) .arg(logicalname.as_ref())
.invoke(crate::ErrorKind::DiskManagement) .invoke(crate::ErrorKind::DiskManagement)
.await?; .await?;