Home
last modified time | relevance | path

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

/system/core/init/
Dreboot.cpp297 std::string backing_dev; in KillZramBackingDevice() local
298 if (!android::base::ReadFileToString(ZRAM_BACK_DEV, &backing_dev)) return; in KillZramBackingDevice()
300 if (!android::base::StartsWith(backing_dev, "/dev/block/loop")) return; in KillZramBackingDevice()
303 backing_dev.erase(backing_dev.length() - 1); in KillZramBackingDevice()
309 LOG(ERROR) << "zram_backing_dev: swapoff (" << backing_dev << ")" << " failed"; in KillZramBackingDevice()
315 LOG(ERROR) << "zram_backing_dev: reset (" << backing_dev << ")" << " failed"; in KillZramBackingDevice()
320 unique_fd loop(TEMP_FAILURE_RETRY(open(backing_dev.c_str(), O_RDWR | O_CLOEXEC))); in KillZramBackingDevice()
322 LOG(ERROR) << "zram_backing_dev: open(" << backing_dev << ")" << " failed"; in KillZramBackingDevice()
327 LOG(ERROR) << "zram_backing_dev: loop_clear (" << backing_dev << ")" << " failed"; in KillZramBackingDevice()
330 LOG(INFO) << "zram_backing_dev: `" << backing_dev << "` is cleared successfully."; in KillZramBackingDevice()