Merge branch 'master' of github.com:Start9Labs/start-os into next/minor

This commit is contained in:
Aiden McClelland
2024-04-01 11:15:22 -06:00
2 changed files with 3 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
use std::io::Cursor;
use std::path::Path;
use tokio::process::Command;
@@ -23,8 +24,8 @@ pub async fn btrfs_check_repair(logicalname: impl AsRef<Path>) -> Result<Require
Command::new("btrfs")
.arg("check")
.arg("--repair")
.arg("--force")
.arg(logicalname.as_ref())
.input(Some(&mut Cursor::new(b"y\n")))
.invoke(crate::ErrorKind::DiskManagement)
.await?;