Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
69e0a824
Commit
69e0a824
authored
Apr 09, 2004
by
Leigh B. Stoller
Browse files
Add -b (nocache) directive to bypass the tmcc cache.
parent
0790e1dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
tmcd/common/libtmcc.pm
View file @
69e0a824
...
...
@@ -71,6 +71,7 @@ my $beproxy = 0;
"
keyfile
"
=>
undef
,
"
timeout
"
=>
undef
,
"
logfile
"
=>
undef
,
"
nocache
"
=>
0
,
);
# The cache directory is named by the vnodeid. This avoids some confusion.
...
...
@@ -324,7 +325,7 @@ sub tmcc ($;$$%)
#
# See if this is a cmd we can get from the local config stash.
#
if
(
!
defined
(
$args
)
||
$args
eq
"")
{
if
(
!
$config
{"
nocache
"}
&&
(
!
defined
(
$args
)
||
$args
eq
"")
)
{
foreach
my
$key
(
keys
(
%commandset
))
{
my
$tag
=
$commandset
{
$key
}
->
{
TAG
};
...
...
tmcd/common/tmcc.pl
View file @
69e0a824
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# All rights reserved.
#
use
English
;
...
...
@@ -15,6 +15,7 @@ sub usage()
{
print
STDERR
"
usage: tmcc [options] <command> [arg1 ...]
\n
";
print
STDERR
"
-d Turn on debugging
\n
";
print
STDERR
"
-b Bypass the tmcc cache and goto to server
\n
";
print
STDERR
"
-s server Specify a tmcd server to connect to
\n
";
print
STDERR
"
-p portnum Specify a port number to connect to
\n
";
print
STDERR
"
-v versnum Specify a version number for tmcd
\n
";
...
...
@@ -27,7 +28,7 @@ sub usage()
print
STDERR
"
-o path Specify log file name for -x option
\n
";
exit
(
1
);
}
my
$optlist
=
"
ds:p:v:n:k:ul:t:x:o:
";
my
$optlist
=
"
ds:p:v:n:k:ul:t:x:o:
b
";
my
$debug
=
0
;
my
$CMD
;
my
$ARGS
;
...
...
@@ -80,6 +81,9 @@ sub ParseOptions()
libtmcc::
configtmcc
("
debug
",
1
);
$debug
=
1
;
}
if
(
defined
(
$options
{"
b
"}))
{
libtmcc::
configtmcc
("
nocache
",
1
);
}
if
(
defined
(
$options
{"
s
"}))
{
libtmcc::
configtmcc
("
server
",
$options
{"
s
"});
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment