From 41d08aa6de5c578f3f4a4ff54bf2866bb7cf599f Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Tue, 13 Aug 2019 15:37:47 +0200 Subject: [PATCH] src/pxar/fuse.rs: enable libfuse debug output in verbose mode Signed-off-by: Christian Ebner --- src/pxar/fuse.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pxar/fuse.rs b/src/pxar/fuse.rs index cea4ff23..ed2aac9b 100644 --- a/src/pxar/fuse.rs +++ b/src/pxar/fuse.rs @@ -125,11 +125,14 @@ impl Session { pub fn new(archive_path: &Path, options: &OsStr, verbose: bool)-> Result { let file = File::open(archive_path)?; // First argument should be the executable name - let arguments = vec![ + let mut arguments = vec![ CString::new("pxar-mount").unwrap(), CString::new("-o").unwrap(), CString::new(options.as_bytes())?, ]; + if verbose { + arguments.push(CString::new("--debug").unwrap()); + } let arg_ptrs: Vec<_> = arguments.iter().map(|opt| opt.as_ptr()).collect(); let args = FuseArgs {