nmeum / android-tools

Unoffical CMake-based build system for android command line utilities
Apache License 2.0
176 stars 51 forks source link

CMake: Add sload_f2fs tool #128

Closed Biswa96 closed 9 months ago

Biswa96 commented 9 months ago

Fixes https://github.com/nmeum/android-tools/issues/127

salvogiangri commented 9 months ago

I can confirm the tool works as expected:

Info: not exist /proc/version!
Info: MKFS version
  "6.2.0-36-generic"
Info: FSCK version
  from "6.2.0-36-generic"
    to "6.2.0-36-generic"
Info: superblock features = 2499 :  encrypt verity extra_attr project_quota quota_ino compression
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: Segments per section = 1
Info: Sections per zone = 1
Info: total FS sectors = 14241656 (6953 MB)
Info: CKPT version = 71e1097b
loaded 7647 fs_config entries
Info: Duplicate valid checkpoint to mirror position 512 -> 1024
Info: Write valid nat_bits in checkpoint
 [ * ] Free segments: 0x6a[FIX] (move_one_curseg_info:2921)  --> Move curseg[0] 3 -> c5a after 3800

[FIX] (move_one_curseg_info:2921)  --> Move curseg[1] 6bb -> d0d after 3800

[FIX] (move_one_curseg_info:2921)  --> Move curseg[2] 35d -> 6bb after 3800

[FIX] (move_one_curseg_info:2921)  --> Move curseg[3] 0 -> 35d after 3800

[FIX] (move_one_curseg_info:2921)  --> Move curseg[4] 1 -> a14 after 3800

[FIX] (move_one_curseg_info:2921)  --> Move curseg[5] 2 -> 1 after 3800

Info: Write valid nat_bits in checkpoint
Info: MKFS version
  "6.2.0-36-generic"
Info: FSCK version
  from "6.2.0-36-generic"
    to "6.2.0-36-generic"
Info: superblock features = 2499 :  encrypt verity extra_attr project_quota quota_ino compression
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: Segments per section = 1
Info: Sections per zone = 1
Info: total FS sectors = 14241656 (6953 MB)
Info: CKPT version = 71e1097b
Info: version timestamp cur: 0, prev: 0
[update_superblock: 765] Info: Done to update superblock
Info: Checked valid nat_bits in checkpoint
Info: checkpoint state = 81 :  nat_bits unmount
[FSCK] Check node 1 / 9126 (0.01%)
[FSCK] Check node 913 / 9126 (10.01%)
[FSCK] Check node 1825 / 9126 (20.01%)
[FSCK] Check node 2737 / 9126 (30.01%)
[FSCK] Check node 3649 / 9126 (40.01%)
[FSCK] Check node 4561 / 9126 (50.01%)
[FSCK] Check node 5473 / 9126 (60.01%)
[FSCK] Check node 6385 / 9126 (70.01%)
[FSCK] Check node 7297 / 9126 (80.01%)
[FSCK] Check node 8209 / 9126 (90.01%)
[FSCK] Check node 9121 / 9126 (100.01%)
[fsck_chk_quota_files:2040] Fixing Quota file ([  0] ino [0x4])
[fsck_chk_quota_files:2040] Fixing Quota file ([  1] ino [0x5])
[fsck_chk_quota_files:2040] Fixing Quota file ([  2] ino [0x6])

[FSCK] Max image size: 6724 MB, Free space: 228 MB
[FSCK] Unreachable nat entries                        [Ok..] [0x0]
[FSCK] SIT valid block bitmap checking                [Ok..]
[FSCK] Hard link checking for regular file            [Ok..] [0x0]
[FSCK] valid_block_count matching with CP             [Ok..] [0x1a0b1b]
[FSCK] valid_node_count matching with CP (de lookup)  [Ok..] [0x23a6]
[FSCK] valid_node_count matching with CP (nat lookup) [Ok..] [0x23a6]
[FSCK] valid_inode_count matched with CP              [Ok..] [0x1de1]
[FSCK] free segment_count matched with CP             [Ok..] [0x6b]
[FSCK] next block offset is free                      [Ok..]
[FSCK] fixing SIT types
[FIX] (check_sit_types:2622)  --> Wrong segment type [0x2] 5 -> 1
[FSCK] other corrupted bugs                           [Ok..]
Info: Duplicate valid checkpoint to mirror position 512 -> 1024
Info: Write valid nat_bits in checkpoint

Done: 533.129217 secs