summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorNikita Ioffe <ioffe@google.com>2020-04-16 21:37:03 +0100
committerNikita Ioffe <ioffe@google.com>2020-04-17 12:28:25 +0100
commita3be996673cc876bf6d8b5f7678541614b08c7db (patch)
treefae6f8187b068a528c658a715ce56d0515354667 /trusty/coverage/coverage_test.cpp
parent10f8f5e363c36530d6743c3230fa56cf08db6646 (diff)
Cleanup logic in KillZramBackingDevice
Since this function is used in userspace reboot, we need to be more diligent with error handling, e.g.: * If init fails to read /sys/block/zram0/backing_dev, then fail and fallback to hard reboot. * Always call swapoff. * Always reset zram. * Tear down loop device only if zram is backed by a loop device. Test: adb reboot userspace Bug: 153917129 Change-Id: I4709da1d08cf427ad9c898cfb2506b6a29f1d680 Merged-In: I4709da1d08cf427ad9c898cfb2506b6a29f1d680 (cherry picked from commit a840d405ebfbbbd18450f9a32933701dd417d3a4)
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions