From debd95385f828faff9bb31cf0d4446dc5709370e Mon Sep 17 00:00:00 2001 From: Yo Chiang Date: Mon, 26 Oct 2020 19:18:46 +0800 Subject: [PATCH] adb-remount-test.sh: Make devt errors warnings instead OverlayFS on Device Mapper on Dynamic Partition / Split Fiemap doesn't seem to report stable dev_t values of the underlying "wrapped" device. For example, when not using overlayFS, the dev_t of a file in /system may be something like 253:8, a dm-verity wrapped device (253 is device mapper's major id). When overlayFS is enabled, the /system mount point is mounted with a overlayFS device wrapping a dm-linear device wrapping the actual storage device. In this case, stat-ing a file in /system shows the dev_t to be something like 0:23. Not only is the major id not correct, the minor id is not stable across reboots, too. For now, suppress the error and make it a warning so it don't report false negatives. We may want to turn this check back on if the overlayfs driver is fixed of this issue. Bug: 165925766 Test: adb-remount-test.sh Change-Id: I035caec3e00d179f227850cbc9835fb3aedf88e5 --- fs_mgr/tests/adb-remount-test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs_mgr/tests/adb-remount-test.sh b/fs_mgr/tests/adb-remount-test.sh index e9958887c..f5bbe3591 100755 --- a/fs_mgr/tests/adb-remount-test.sh +++ b/fs_mgr/tests/adb-remount-test.sh @@ -1380,9 +1380,9 @@ check_eq "${SYSTEM_DEVT}" "`adb_sh stat --format=%D /system/hello /dev/null 2>/dev/null @@ -1509,8 +1509,8 @@ else check_eq "${SYSTEM_DEVT}" "`adb_sh stat --format=%D /system/hello