Skip to content

Commit f38266b

Browse files
committed
Fix build issues in scanner
1 parent b218685 commit f38266b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

scanner/mds_scanner/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ CPP = gcc
22
LINKERFLAG = -lm
33

44
all:
5-
$(CPP) mds_scanner.c -o mds_scanner $(LINKERFLAG)
6-
./ mds_scanner
5+
$(CPP) mds_scanner.c -o mds_scanner $(LINKERFLAG) -O3
76

87
.PHONY: clean
98
clean:

scanner/mds_scanner/mds_scanner.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ int main(void) {
6868
int inode_size = super.s_inode_size; /*1024 for mds*/
6969
int max_inodes_per_group = super.s_inodes_per_group; /*32768 for mds*/
7070
int groups_in_flex_group = pow(2, super.s_log_groups_per_flex); /*16 for mds*/
71-
//printf("block size: %d\n"
71+
printf("block size: %d\n"
7272
"total inodes: %d\n"
7373
"free inodes: %d\n"
7474
" used inodes: %d\n"

scanner/oss_scanner/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ CPP = gcc
22
LINKERFLAG = -lm
33

44
all:
5-
$(CPP) oss_scanner.c -o oss_scanner $(LINKERFLAG)
6-
./ oss_scanner
5+
$(CPP) oss_scanner.c -o oss_scanner $(LINKERFLAG) -O3
76

87
.PHONY: clean
98
clean:

0 commit comments

Comments
 (0)