From 2b879e73bc73ceb4a1ff12a1bb81be66706f0470 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 21 Jul 2013 05:18:18 +1200 Subject: [PATCH] cammount, dev-cammount: add verbose/debug flag Change-Id: If53ec139db178b44c2dd5c7f1cad33f7ab62c847 --- cmd/cammount/cammount.go | 1 + dev-cammount | 3 +++ 2 files changed, 4 insertions(+) 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();