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
b15035d0
Commit
b15035d0
authored
Feb 03, 2016
by
Mike Hibler
Browse files
Fix calculation of slop size when comparing actual/expected sizes of LVs.
parent
78bb403f
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/liblocstorage.pm
View file @
b15035d0
#!/usr/bin/perl -wT
#
# Copyright (c) 2013-201
5
University of Utah and the Flux Group.
# Copyright (c) 2013-201
6
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -947,8 +947,13 @@ sub os_check_storage_slice($$)
$dev
=
"
emulab/
$lv
";
$mdev
=
"
mapper/emulab-
$lv
";
$devtype
=
"
LVM
";
# XXX LVM rounds up to extent size (4 MiB)
$slop
=
3
;
# XXX LVM rounds up to physical extent size (4 MiB)
# on every physical volume that is in the VG
if
(
exists
(
$so
->
{'
LVM_VGDEVS
'})
&&
$so
->
{'
LVM_VGDEVS
'}
>
1
)
{
$slop
=
(
4
*
$so
->
{'
LVM_VGDEVS
'})
-
1
;
}
else
{
$slop
=
3
;
}
}
my
$devsize
=
$href
->
{'
VOLSIZE
'};
...
...
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