src/pxar/fuse.rs: rename from_decoder into new, new into from_path

This commit is contained in:
Dietmar Maurer
2019-11-26 10:56:41 +01:00
parent 99b5b6cba9
commit 2a11191072
3 changed files with 19 additions and 19 deletions

View File

@ -1709,7 +1709,7 @@ async fn mount_do(param: Value, pipe: Option<RawFd>) -> Result<Value, Error> {
let reader = BufferedDynamicReader::new(index, chunk_reader);
let decoder = pxar::Decoder::new(reader)?;
let options = OsStr::new("ro,default_permissions");
let mut session = pxar::fuse::Session::from_decoder(decoder, &options, pipe.is_none())
let mut session = pxar::fuse::Session::new(decoder, &options, pipe.is_none())
.map_err(|err| format_err!("pxar mount failed: {}", err))?;
// Mount the session but not call fuse deamonize as this will cause