diff --git a/cmd/cammount/cammount.go b/cmd/cammount/cammount.go index d6a4c03e5..b05a9c5ca 100644 --- a/cmd/cammount/cammount.go +++ b/cmd/cammount/cammount.go @@ -115,6 +115,7 @@ func main() { } if *debug { + fuse.Debugf = log.Printf // TODO: set fs's logger } diff --git a/dev-cammount b/dev-cammount index 8e83d7581..5b92429e1 100755 --- a/dev-cammount +++ b/dev-cammount @@ -7,9 +7,11 @@ require "$Bin/misc/devlib.pl"; my @blobref_arg; my $opt_xterm; +my $opt_verbose; GetOptions( "xterm" => \$opt_xterm, + "verbose" => \$opt_verbose, ) or usage(); if (@ARGV) { @@ -44,6 +46,7 @@ print "######################################################################### exec("$cammount", "--xterm=" . ($opt_xterm ? "true" : "false"), + "--debug=" . ($opt_verbose ? "true" : "false"), "--server=http://localhost:3179/bs", $dir, @blobref_arg) and warn "cammount failure: $!\n"; warn "Failed to unmount\n" unless try_unmount();