Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9550ff43 authored by Keun-young Park's avatar Keun-young Park Committed by android-build-merger
Browse files

Merge "use s_max_mnt_count to detect mke2fs generated partition" am: 2e3abe2d am: 1dc97387

am: 493c2cd5

Change-Id: I328b2e9f893fddde6ff5f4b8e2b5e8b2cae4c6c4
parents 420a937e 493c2cd5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -283,7 +283,10 @@ static int do_quota_with_shutdown_check(char *blk_device, char *fs_type,
                    return force_check;
                }
                *fs_stat |= FS_STAT_IS_EXT4;
                //TODO check if it is new version or not
                LINFO << "superblock s_max_mnt_count:" << sb.s_max_mnt_count << "," << blk_device;
                if (sb.s_max_mnt_count == 0xffff) {  // -1 (int16) in ext2, but uint16 in ext4
                    *fs_stat |= FS_STAT_NEW_IMAGE_VERSION;
                }
                if ((sb.s_feature_incompat & EXT4_FEATURE_INCOMPAT_RECOVER) != 0 ||
                    (sb.s_state & EXT4_VALID_FS) == 0) {
                    LINFO << __FUNCTION__ << "(): was not clealy shutdown, state flag:"