src/bin/pxar.rs: adapt to new deamonize flag
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
d388e244f5
commit
2fa91f5221
|
@ -233,7 +233,8 @@ fn mount_archive(
|
||||||
let options = OsStr::new("ro,default_permissions");
|
let options = OsStr::new("ro,default_permissions");
|
||||||
let mut session = pxar::fuse::Session::new(&archive, &options, verbose)
|
let mut session = pxar::fuse::Session::new(&archive, &options, verbose)
|
||||||
.map_err(|err| format_err!("pxar mount failed: {}", err))?;
|
.map_err(|err| format_err!("pxar mount failed: {}", err))?;
|
||||||
session.mount(&mountpoint)?;
|
// Mount the session and deamonize if verbose is not set
|
||||||
|
session.mount(&mountpoint, !verbose)?;
|
||||||
session.run_loop(!no_mt)?;
|
session.run_loop(!no_mt)?;
|
||||||
|
|
||||||
Ok(Value::Null)
|
Ok(Value::Null)
|
||||||
|
|
Loading…
Reference in New Issue