Skip to content
GitLab
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
6d61bf20
Commit
6d61bf20
authored
Jun 19, 2013
by
Leigh B Stoller
Browse files
Allow option to write uncompressed ndz file to disk.
parent
55e11f33
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/libvnode.pm
View file @
6d61bf20
...
...
@@ -448,7 +448,8 @@ sub downloadImage($$$$) {
if
(
!
defined
(
$addr
)
||
$addr
eq
"")
{
# frisbee master server world
my
(
$server
,
$imageid
);
my
$proxyopt
=
"";
my
$proxyopt
=
"";
my
$todiskopt
=
"";
if
(
$reload_args_ref
->
{"
SERVER
"}
=~
/^(\d+\.\d+\.\d+\.\d+)$/
)
{
$server
=
$
1
;
...
...
@@ -459,8 +460,11 @@ sub downloadImage($$$$) {
if
(
SHAREDHOST
())
{
$proxyopt
=
"
-P
$nodeid
";
}
if
(
!
$todisk
)
{
$todiskopt
=
"
-N
";
}
if
(
$server
&&
$imageid
)
{
mysystem2
("
$FRISBEE
-f -M 64
$proxyopt
"
.
mysystem2
("
$FRISBEE
-f -M 64
$proxyopt
$todiskopt
"
.
"
-S
$server
-B 30 -F
$imageid
$imagepath
");
return
-
1
if
(
$?
);
...
...
@@ -529,7 +533,7 @@ sub createExtraFS($$$)
system
("
lvcreate -n
$lvname
-L
$size
$vgname
")
==
0
or
return
-
1
;
system
("
mke2fs -j
$lvpath
")
==
0
system
("
mke2fs -j
-q
$lvpath
")
==
0
or
return
-
1
;
}
if
(
!
-
e
"
$path
/.mounted
")
{
...
...
@@ -552,7 +556,7 @@ sub lvSize($)
{
my
(
$device
)
=
@_
;
my
$lv_size
=
`
lvs -o lv_size --noheadings --units
g
$device
`;
my
$lv_size
=
`
lvs -o lv_size --noheadings --units
k --nosuffix
$device
`;
return
undef
if
(
$?
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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