ksud: Add cli for fast copy sparse file
This commit is contained in:
@@ -112,6 +112,13 @@ enum Debug {
|
||||
|
||||
Mount,
|
||||
|
||||
/// Copy sparse file
|
||||
Xcp {
|
||||
/// source file
|
||||
src: String,
|
||||
/// destination file
|
||||
dst: String,
|
||||
},
|
||||
/// For testing
|
||||
Test,
|
||||
}
|
||||
@@ -277,6 +284,10 @@ pub fn run() -> Result<()> {
|
||||
}
|
||||
Debug::Su => crate::ksu::grant_root(),
|
||||
Debug::Mount => event::mount_systemlessly(defs::MODULE_DIR),
|
||||
Debug::Xcp { src, dst } => {
|
||||
utils::copy_sparse_file(&src, &dst)?;
|
||||
Ok(())
|
||||
}
|
||||
Debug::Test => todo!(),
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user