Remove path argument from mount function
This commit is contained in:
parent
6873b5537b
commit
5284fcd6d1
@ -10,7 +10,7 @@ struct Serv {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl fs_rpc::Server for Serv {
|
impl fs_rpc::Server for Serv {
|
||||||
fn mount(&self, dev: &std::path::Path, _path: &std::path::Path) -> Result<u64, ()> {
|
fn mount(&self, dev: &std::path::Path) -> Result<u64, ()> {
|
||||||
let archive = File::open(dev).map_err(|_| ())?;
|
let archive = File::open(dev).map_err(|_| ())?;
|
||||||
let mut archive = Archive::new(archive);
|
let mut archive = Archive::new(archive);
|
||||||
let entries = archive.entries_with_seek().unwrap().map(|entry| {
|
let entries = archive.entries_with_seek().unwrap().map(|entry| {
|
||||||
|
Loading…
Reference in New Issue
Block a user