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
5e9039ff
Commit
5e9039ff
authored
Dec 12, 2003
by
Mike Hibler
Browse files
Add -R option to allow setting of readahead.
parent
51ee0939
Changes
1
Hide whitespace changes
Inline
Side-by-side
os/frisbee.redux/client.c
View file @
5e9039ff
...
...
@@ -151,7 +151,7 @@ main(int argc, char **argv)
int
dostype
=
-
1
;
int
slice
=
0
;
while
((
ch
=
getopt
(
argc
,
argv
,
"dhp:m:s:i:tbznT:r:E:D:C:W:S:M:"
))
!=
-
1
)
while
((
ch
=
getopt
(
argc
,
argv
,
"dhp:m:s:i:tbznT:r:E:D:C:W:S:M:
R:
"
))
!=
-
1
)
switch
(
ch
)
{
case
'd'
:
debug
++
;
...
...
@@ -243,6 +243,15 @@ main(int argc, char **argv)
maxmem
=
mem
;
break
;
case
'R'
:
maxreadahead
=
atoi
(
optarg
);
if
(
maxinprogress
<
maxreadahead
*
4
)
{
maxinprogress
=
maxreadahead
*
4
;
if
(
maxinprogress
>
maxchunkbufs
)
maxinprogress
=
maxchunkbufs
;
}
break
;
case
'h'
:
case
'?'
:
default:
...
...
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