summaryrefslogtreecommitdiff
path: root/libutils/SharedBuffer_test.cpp
diff options
context:
space:
mode:
authorluwei9 <luwei9@xiaomi.com>2021-04-14 14:34:59 +0800
committer陆伟 <luwei9@xiaomi.com>2021-04-15 08:08:20 +0000
commit8a3653cfe2732e27cc223eb3506a2b36bd714ef9 (patch)
tree68404702fe4ca384454c8e139e70315d3a911a46 /libutils/SharedBuffer_test.cpp
parentd8d9736573b02e9f4940b1a41f60f9748983785f (diff)
[Bugfix]Fix userspace-reboot failure when backing_dev exists but zram not swapped on
'/sys/block/zram0/backing_dev' will exist even if zram is not swapped on in some devices. And there is no reason to ensure that zram is swapped on if '/sys/block/zram0/backing_dev' exists. So, if we want to kill backing_dev during userspace reboot, we should check if zram is swapped on first. TEST: as follow - adb root - adb shell swapoff /dev/block/zram0 - adb shell echo 1 > /sys/block/zram0/reset - adb shell setprop test.userspace.reboot.flag 1 - adb reboot userspace - (wait reboot ending) adb shell getprop test.userspace.reboot.flag (1 will be show if successful) Signed-off-by: luwei9 <luwei9@xiaomi.com> Change-Id: Icca569cf8d64bc024b867dae2ab789fc9e76445a
Diffstat (limited to 'libutils/SharedBuffer_test.cpp')
0 files changed, 0 insertions, 0 deletions