Home
last modified time | relevance | path

Searched refs:backing_dev (Results 1 – 1 of 1) sorted by relevance

/system/core/init/
Dreboot.cpp473 std::string backing_dev; in KillZramBackingDevice() local
474 if (!android::base::ReadFileToString(ZRAM_BACK_DEV, &backing_dev)) { in KillZramBackingDevice()
479 backing_dev.erase(backing_dev.length() - 1); in KillZramBackingDevice()
485 return ErrnoError() << "zram_backing_dev: swapoff (" << backing_dev << ")" in KillZramBackingDevice()
491 return Error() << "zram_backing_dev: reset (" << backing_dev << ")" in KillZramBackingDevice()
495 if (!android::base::StartsWith(backing_dev, "/dev/block/loop")) { in KillZramBackingDevice()
496 LOG(INFO) << backing_dev << " is not a loop device. Exiting early"; in KillZramBackingDevice()
501 unique_fd loop(TEMP_FAILURE_RETRY(open(backing_dev.c_str(), O_RDWR | O_CLOEXEC))); in KillZramBackingDevice()
503 return ErrnoError() << "zram_backing_dev: open(" << backing_dev << ")" in KillZramBackingDevice()
508 return ErrnoError() << "zram_backing_dev: loop_clear (" << backing_dev << ")" in KillZramBackingDevice()
[all …]