cammount, dev-cammount: add verbose/debug flag

Change-Id: If53ec139db178b44c2dd5c7f1cad33f7ab62c847
This commit is contained in:
Brad Fitzpatrick 2013-07-21 05:18:18 +12:00
parent 1d089ec601
commit 2b879e73bc
2 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,7 @@ func main() {
}
if *debug {
fuse.Debugf = log.Printf
// TODO: set fs's logger
}

View File

@ -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();