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
d92dbc01
Commit
d92dbc01
authored
May 05, 2015
by
Mike Hibler
Browse files
Missed a file from the previous commit for forced relocation gen.
parent
6b5f0e45
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/os/imagezip/imagezip.c
View file @
d92dbc01
...
@@ -98,6 +98,7 @@ int forcereads= 0;
...
@@ -98,6 +98,7 @@ int forcereads= 0;
int
badsectors
=
0
;
int
badsectors
=
0
;
int
retrywrites
=
1
;
int
retrywrites
=
1
;
int
dorelocs
=
1
;
int
dorelocs
=
1
;
int
forcerelocs
=
0
;
int
metaoptimize
=
0
;
int
metaoptimize
=
0
;
int
filemode
=
0
;
int
filemode
=
0
;
int
excludenonfs
=
0
;
int
excludenonfs
=
0
;
...
@@ -404,7 +405,7 @@ main(int argc, char *argv[])
...
@@ -404,7 +405,7 @@ main(int argc, char *argv[])
memset
(
imageid
,
'\0'
,
UUID_LENGTH
);
memset
(
imageid
,
'\0'
,
UUID_LENGTH
);
gettimeofday
(
&
sstamp
,
0
);
gettimeofday
(
&
sstamp
,
0
);
while
((
ch
=
getopt
(
argc
,
argv
,
"vlbnNdihrs:c:z:ofI:13F:DR:S:XxH:U:P:Me:k:u:a:Z"
))
!=
-
1
)
while
((
ch
=
getopt
(
argc
,
argv
,
"vlbnNdihrs:c:z:ofI:13F:DR:S:XxH:U:P:Me:k:u:a:Z
L
"
))
!=
-
1
)
switch
(
ch
)
{
switch
(
ch
)
{
case
'v'
:
case
'v'
:
version
++
;
version
++
;
...
@@ -425,6 +426,9 @@ main(int argc, char *argv[])
...
@@ -425,6 +426,9 @@ main(int argc, char *argv[])
case
'b'
:
case
'b'
:
slicetype
=
IZTYPE_FBSDNOLABEL
;
slicetype
=
IZTYPE_FBSDNOLABEL
;
break
;
break
;
case
'L'
:
forcerelocs
=
1
;
break
;
case
'N'
:
case
'N'
:
dorelocs
=
0
;
dorelocs
=
0
;
break
;
break
;
...
@@ -646,6 +650,9 @@ main(int argc, char *argv[])
...
@@ -646,6 +650,9 @@ main(int argc, char *argv[])
if
(
!
slicemode
&&
!
filemode
&&
dorelocs
)
if
(
!
slicemode
&&
!
filemode
&&
dorelocs
)
dorelocs
=
0
;
dorelocs
=
0
;
if
(
forcerelocs
&&
!
dorelocs
)
dorelocs
=
1
;
infilename
=
argv
[
0
];
infilename
=
argv
[
0
];
if
(
strcmp
(
infilename
,
"-"
))
{
if
(
strcmp
(
infilename
,
"-"
))
{
if
((
infd
=
open
(
infilename
,
O_RDONLY
,
0
))
<
0
)
{
if
((
infd
=
open
(
infilename
,
O_RDONLY
,
0
))
<
0
)
{
...
...
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