Home
last modified time | relevance | path

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

/base/update/updateservice/services/engine/src/
Dupdate_service_restorer.cpp35 auto miscBlockDev = Updater::GetBlockDeviceByMountPoint(MISC_PATH); in FactoryReset() local
36 ENGINE_LOGI("FactoryReset::misc path : %{public}s", miscBlockDev.c_str()); in FactoryReset()
37 …ENGINE_CHECK(!miscBlockDev.empty(), miscBlockDev = MISC_FILE, "cannot get block device of partitio… in FactoryReset()
38 …int32_t ret = RebootAndCleanUserData(miscBlockDev, CMD_WIPE_DATA) ? INT_CALL_SUCCESS : INT_CALL_FA… in FactoryReset()
/base/update/updater/services/
Dupdater_utils.cpp78 auto miscBlockDev = GetBlockDeviceByMountPoint(MISC_PATH); in ClearMisc() local
79 if (miscBlockDev.empty()) { in ClearMisc()
81 miscBlockDev = MISC_FILE; in ClearMisc()
83 LOG(INFO) << "ClearMisc::misc path : " << miscBlockDev; in ClearMisc()
84 auto fp = std::unique_ptr<FILE, decltype(&fclose)>(fopen(miscBlockDev.c_str(), "rb+"), fclose); in ClearMisc()