All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit d92dbc01 authored by Mike Hibler's avatar Mike Hibler

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

parent 6b5f0e45
......@@ -98,6 +98,7 @@ int forcereads= 0;
int badsectors= 0;
int retrywrites= 1;
int dorelocs = 1;
int forcerelocs = 0;
int metaoptimize = 0;
int filemode = 0;
int excludenonfs = 0;
......@@ -404,7 +405,7 @@ main(int argc, char *argv[])
memset(imageid, '\0', UUID_LENGTH);
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) {
case 'v':
version++;
......@@ -425,6 +426,9 @@ main(int argc, char *argv[])
case 'b':
slicetype = IZTYPE_FBSDNOLABEL;
break;
case 'L':
forcerelocs = 1;
break;
case 'N':
dorelocs = 0;
break;
......@@ -646,6 +650,9 @@ main(int argc, char *argv[])
if (!slicemode && !filemode && dorelocs)
dorelocs = 0;
if (forcerelocs && !dorelocs)
dorelocs = 1;
infilename = argv[0];
if (strcmp(infilename, "-")) {
if ((infd = open(infilename, O_RDONLY, 0)) < 0) {
......
Markdown is supported
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