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
ee77cd2f
Commit
ee77cd2f
authored
Oct 22, 2013
by
Dan Reading
Browse files
if the WriteCacheEnable is found to be off then turn it on
parent
16ed1edb
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/diskcheck
View file @
ee77cd2f
...
...
@@ -524,6 +524,7 @@ getwcache() {
res
=
"enabled"
elif
[
"
${
x
/off
}
"
!=
"
$x
"
]
;
then
res
=
"disabled"
hdparm
-W1
$1
>
/dev/null 2>&1
fi
fi
else
...
...
@@ -532,6 +533,7 @@ getwcache() {
res
=
"enabled"
elif
[
"
${
x
/Disabled
}
"
!=
"
$x
"
]
;
then
res
=
"disabled"
$smtcl
--set
=
wcache,on
$1
>
/dev/null 2>&1
fi
fi
fi
...
...
@@ -547,6 +549,7 @@ getwcache() {
res
=
"enabled"
elif
[
"
${
x
/0
}
"
!=
"
$x
"
]
;
then
res
=
"disabled"
/usr/local/etc/emulab/camwce on
$sd
>
/dev/null 2>&1
fi
fi
else
...
...
@@ -555,6 +558,7 @@ getwcache() {
res
=
"enabled"
elif
[
"
${
x
/Disabled
}
"
!=
"
$x
"
]
;
then
res
=
"disabled"
$smtcl
--set
=
wcache,on
$1
>
/dev/null 2>&1
fi
fi
fi
...
...
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