mirror of https://github.com/perkeep/perkeep.git
cammount, dev-cammount: add verbose/debug flag
Change-Id: If53ec139db178b44c2dd5c7f1cad33f7ab62c847
This commit is contained in:
parent
1d089ec601
commit
2b879e73bc
|
@ -115,6 +115,7 @@ func main() {
|
|||
}
|
||||
|
||||
if *debug {
|
||||
fuse.Debugf = log.Printf
|
||||
// TODO: set fs's logger
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue