Skip to content

Commit 6a0c331

Browse files
committed
Fix filesystem builder
1 parent 23c60d0 commit 6a0c331

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/fs2xml.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void Untar(unsigned char *buf, int len)
273273
//int size = atoi(ph->size);
274274
int size = strtol(ph->size, NULL, 8);
275275
printf("%c %s %8i %s\n", ph->typeflag, ph->mode, size, ph->name);
276-
MergeFile(ph);
276+
if (ph->typeflag != 'L') MergeFile(ph);
277277

278278
if (size != 0) {
279279
p = p + size;
@@ -566,7 +566,7 @@ void WalkDir(int parentid)
566566
system(command);
567567
*/
568568

569-
569+
570570
}
571571
if (ShouldBeLoaded(inodes[i].name)) {
572572
inodes[i].load = 1;
@@ -584,7 +584,7 @@ void CreateFilesystem()
584584

585585
int main(int argc, char *argv[])
586586
{
587-
unsigned char *buf = (unsigned char*)malloc(60 * 1024 * 1024);
587+
unsigned char *buf = (unsigned char*)malloc(80 * 1024 * 1024);
588588

589589
if (argc < 2)
590590
{
@@ -593,8 +593,8 @@ int main(int argc, char *argv[])
593593
}
594594
printf("Build sysroot in folder %s\n", "fs");
595595

596-
inodes = (struct inode*) malloc(10000 * sizeof(struct inode));
597-
memset(inodes, 0, 10000 * sizeof(struct inode));
596+
inodes = (struct inode*) malloc(20000 * sizeof(struct inode));
597+
memset(inodes, 0, 20000 * sizeof(struct inode));
598598

599599
int i=0;
600600
char filename[256];

0 commit comments

Comments
 (0)