Home
last modified time | relevance | path

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

/base/update/updater/services/fs_manager/
Ddo_partition.cpp51 … LOG(ERROR) << "ioctl of partition " << part.partName << " with operation " << op << " failed"; in BlkpgPartCommand()
58 std::string partName = std::string("/") + part.partName; in DoUmountDiskPartition() local
59 int ret = UmountForPath(partName); in DoUmountDiskPartition()
61 LOG(ERROR) << "Umount " << partName << " failed: " << errno; in DoUmountDiskPartition()
156 …if (strncpy_s(blkPart.volname, BLKPG_VOLNAMELTH, part.partName.c_str(), part.partName.size()) != E… in BlkpgAddPartition()
215 if (p->partName == "userdata") { in WriteDiskPartitionToMisc()
217 p->partName.c_str()) != -1, return false); in WriteDiskPartitionToMisc()
221 size, p->partName.c_str()) != -1, return false); in WriteDiskPartitionToMisc()
258 if (p2->partName == USERDATA_PARTNAME) { in AddPartitions()
262 if (p2->partName == UPDATER_PARTNAME) { in AddPartitions()
[all …]
Dpartitions.cpp342 char partName[64] = {0}; in NewPartition() local
344 …if (snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%sp%d", devName.c_str(), partn) … in NewPartition()
350 …snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%s%d", devName.c_str(), partn) == -1… in NewPartition()
355 std::string strstart = ReadPartitionFromSys(devName, partName, "start", ""); in NewPartition()
362 std::string strsize = ReadPartitionFromSys(devName, partName, "size", ""); in NewPartition()
369 std::string strdevname = ReadPartitionFromSys(devName, partName, "uevent", "DEVNAME="); in NewPartition()
370 part->devName = partName; in NewPartition()
374 std::string strpartname = ReadPartitionFromSys(devName, partName, "uevent", "PARTNAME="); in NewPartition()
375 part->partName = partName; in NewPartition()
377 part->partName = strpartname; in NewPartition()
[all …]
Dcmp_partition.cpp27 if (!strcmp(p->partName.c_str(), newp.partName.c_str())) { in ComparePartition()
28 LOG(INFO) << "compare_partition old " << p->partName; in ComparePartition()
73 LOG(INFO) << "change p->partName " << p->partName; in TraversePartitionList()
/base/update/updater/services/updater_binary/
Dupdate_image_patch.cpp59 uint32_t ret = static_cast<uint32_t>(context.GetParam(index++, para.partName)); in GetParam()
69 para.devPath = GetBlockDeviceByMountPoint(para.partName); in GetParam()
71 LOG(ERROR) << "get " << para.partName << " dev path error"; in GetParam()
92 std::string newFile = UPDATER_PATH + para.partName + ".new"; in ApplyPatch()
123 const FileInfo *info = env.GetPkgManager()->GetFileInfo(para.partName); in GetPatchFile()
130 std::string patchFile = UPDATER_PATH + para.partName; in GetPatchFile()
138 ret = env.GetPkgManager()->ExtractFile(para.partName, outStream); in GetPatchFile()
152 std::string srcFile = UPDATER_PATH + para.partName + ".backup"; in GetSourceFile()
178 if (PartitionRecord::GetInstance().IsPartitionUpdated(para.partName)) { in ExecuteImagePatch()
179 LOG(INFO) << para.partName << " already updated, skip"; in ExecuteImagePatch()
[all …]
Dupdate_image_patch.h27 std::string partName {};
50 std::string partName {};
Dupdate_partitions.cpp66 myPartition->partName = (item->valuestring); in ParsePartitionInfo()
74 myPartition->partName << " " << myPartition->fsType; in ParsePartitionInfo()
/base/update/updater/test/fuzztest/dopartitions_fuzzer/
Ddopartitions_fuzzer.cpp32 static void InitEmmcPartition(struct Partition &part, const std::string &partName, size_t start, si… in InitEmmcPartition() argument
34 part.partName = partName; in InitEmmcPartition()
/base/update/updater/services/flashd/daemon/
Dflash_commander.cpp80 bool FlashCommander::InitPartition(const std::string &partName, const uint8_t *buffer, int bufferSi… in InitPartition() argument
86 partName, buffer, bufferSize); in InitPartition()
91 partition_ = std::make_unique<Partition>(partName, std::move(writer)); in InitPartition()
Dflash_commander.h33 bool InitPartition(const std::string &partName, const uint8_t *buffer, int bufferSize);
/base/update/updater/test/unittest/fs_manager/
Ddo_partition_unittest.cpp68 static void InitEmmcPartition(struct Partition &part, const std::string &partName, size_t start, si… in InitEmmcPartition() argument
70 part.partName = partName; in InitEmmcPartition()
/base/startup/init/interfaces/innerkits/fs_manager/
Dfstab.c503 int GetBlockDevicePath(const char *partName, char *path, size_t size) in GetBlockDevicePath() argument
505 BEGET_CHECK_RETURN_VALUE(partName != NULL && path != NULL, -1); in GetBlockDevicePath()
514 int ret = GetBlockDeviceByMountPoint(partName, fstab, path, size); in GetBlockDevicePath()
515 BEGET_INFO_CHECK(ret == 0, ret = GetBlockDeviceByName(partName, fstab, path, size), in GetBlockDevicePath()
534 char partName[NAME_SIZE] = {}; in ParseRequiredMountInfo() local
542 BEGET_ERROR_CHECK(strncpy_s(partName, NAME_SIZE -1, q, p - q) == EOK, in ParseRequiredMountInfo()
548 BEGET_LOGV("Mount option of partition %s is [%s]", partName, mountOptions); in ParseRequiredMountInfo()
550 …BEGET_LOGE("Failed to parse mount options of partition \' %s \', options: %s", partName, mountOpti… in ParseRequiredMountInfo()
/base/powermgr/battery_statistics/services/native/test/unittest/src/
Dstats_dump_test.cpp203 std::string partName = "Battery"; variable
207 partName, "TEMPERATURE", temperature);
213 .append(partName);
/base/update/updater/services/include/fs_manager/
Dpartitions.h88 std::string partName; member
/base/startup/init/interfaces/innerkits/include/fs_manager/
Dfs_manager.h98 int GetBlockDevicePath(const char *partName, char *path, size_t size);
/base/powermgr/battery_statistics/test/systemtest/src/
Dbatterystats_sys_test.cpp235 std::string partName = "Battery"; variable
239 partName, "TEMPERATURE", temperature);
245 .append(partName);