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
4501b541
Commit
4501b541
authored
Nov 24, 2015
by
Mike Hibler
Browse files
Argh, forgot to qualify my findSpareDisk calls!
Do the testing Mike...
parent
8d00d9a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/xen/libvnode_xen.pm
View file @
4501b541
...
...
@@ -533,11 +533,11 @@ sub rootPreConfig($)
# Make sure pieces are at least 5 GiB.
#
my
$minpsize
=
5
*
1024
;
my
%devs
=
findSpareDisks
(
$minpsize
,
$LVM_AVOIDSSD
);
my
%devs
=
libvnode::
findSpareDisks
(
$minpsize
,
$LVM_AVOIDSSD
);
# if ignoring SSDs but came up with nothing, we have to use them!
if
(
$LVM_AVOIDSSD
&&
keys
(
%devs
)
==
0
)
{
%devs
=
findSpareDisks
(
$minpsize
,
0
);
%devs
=
libvnode::
findSpareDisks
(
$minpsize
,
0
);
}
#
...
...
Write
Preview
Markdown
is supported
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