Commit d92dbc01 authored by Mike Hibler's avatar Mike Hibler
Browse files

Missed a file from the previous commit for forced relocation gen.

parent 6b5f0e45
...@@ -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:ZL")) != -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment