Home
last modified time | relevance | path

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

/base/update/sys_installer/services/module_update/src/
Dmodule_dm.cpp58 char *devPath = nullptr; in CreateDmDevice() local
77 ret = FsDmCreateDevice(&devPath, devName.c_str(), &target); in CreateDmDevice()
82 ret = FsDmInitDmDev(devPath); in CreateDmDevice()
87 deviceName = std::string(devPath); in CreateDmDevice()
89 free(devPath); in CreateDmDevice()
/base/startup/init/ueventd/
Dueventd_device_handler.c426 char *devPath = NULL; in GetDeviceBasePath() local
428 return devPath; in GetDeviceBasePath()
432 devPath = "/dev/block"; in GetDeviceBasePath()
434 devPath = "/dev/input"; in GetDeviceBasePath()
436 devPath = "/dev/dri"; in GetDeviceBasePath()
438 devPath = "/dev/graphics"; in GetDeviceBasePath()
440 devPath = "/dev/snd"; in GetDeviceBasePath()
442 devPath = "/dev/functionfs"; in GetDeviceBasePath()
444 devPath = "/dev/dma_heap"; in GetDeviceBasePath()
446 devPath = "/dev"; in GetDeviceBasePath()
[all …]
/base/update/updater/services/fs_manager/
Dpartitions.cpp31 if (!stat (dev.devPath.c_str(), &devStat)) { in DeviceStat()
34 if (stat (dev.devPath.c_str(), &devStat) != EOK) { in DeviceStat()
91 LastComponent(dev.devPath).c_str(), file.c_str()) == -1) { in ReadDeviceSysfsFile()
128 specific->fd = open(dev.devPath.c_str(), RW_MODE); in SetBlockDeviceMode()
130 LOG(WARNING) << "Open " << dev.devPath << " with read-write failed, try read-only mode"; in SetBlockDeviceMode()
131 specific->fd = open(dev.devPath.c_str(), RD_MODE); in SetBlockDeviceMode()
135 LOG(ERROR) << "Open " << dev.devPath << " with read-only mode failed: " << errno; in SetBlockDeviceMode()
159 std::string devPath; in ReadPartitionFromSys() local
161 devPath = "/sys/block/" + devname + "/" + partn + "/" + type; in ReadPartitionFromSys()
163 devPath = "/sys/block/" + devname + "/" + type; in ReadPartitionFromSys()
[all …]
Dmount.cpp215 void ErasePartition(const std::string &devPath) in ErasePartition() argument
218 if (!Utils::PathToRealPath(devPath, realPath)) { in ErasePartition()
219 LOG(ERROR) << "realpath failed:" << devPath; in ErasePartition()
Ddo_partition.cpp102 disk.dev->fd = open(disk.dev->devPath.c_str(), RW_MODE); in BlockDiskOpen()
104 LOG(WARNING) << "open fail: " << disk.dev->devPath << errno; in BlockDiskOpen()
/base/update/updater/test/unittest/applypatch_test/
Dapplypatch_unittest.cpp62 auto devPath = GetBlockDeviceByMountPoint(partitionName); in TearDown() local
63 unlink(devPath.c_str()); in TearDown()
88 auto devPath = GetBlockDeviceByMountPoint(partitionName); variable
91 close(open(devPath.c_str(), O_CREAT | O_WRONLY | O_EXCL, 0664));
95 int fd = open(devPath.c_str(), O_RDONLY);
/base/msdp/device_status/services/device_manager/src/
Ddevice_manager.cpp145 std::shared_ptr<IDevice> DeviceManager::FindDevice(const std::string &devPath) in FindDevice() argument
148 [devPath](const auto &item) { in FindDevice()
149 return ((item.second != nullptr) && (item.second->GetDevPath() == devPath)); in FindDevice()
172 const std::string devPath { DEV_INPUT_PATH + devNode }; in AddDevice() local
175 if (stat(devPath.c_str(), &statbuf) != 0) { in AddDevice()
176 FI_HILOGD("Invalid device path:%{public}s", devPath.c_str()); in AddDevice()
180 FI_HILOGD("Not character device:%{public}s", devPath.c_str()); in AddDevice()
190 std::shared_ptr<IDevice> dev = FindDevice(devPath); in AddDevice()
192 FI_HILOGD("Already exists:%{public}s", devPath.c_str()); in AddDevice()
204 dev->SetDevPath(devPath); in AddDevice()
[all …]
Denumerator.cpp55 const std::string devPath { DEV_INPUT_PATH + devNode }; in ScanAndAddDevices() local
58 if (stat(devPath.c_str(), &statbuf) != 0) { in ScanAndAddDevices()
/base/update/updater/test/unittest/updater_binary/
Dupdate_processor_unittest.cpp49 string devPath = GetBlockDeviceByMountPoint(UT_MISC_PARTITION_NAME); in SetUp() local
51 auto ret = Store::WriteDataToStore("/", devPath, buffer, UT_MISC_BUFFER_SIZE); in SetUp()
60 string devPath = GetBlockDeviceByMountPoint(UT_MISC_PARTITION_NAME); in TearDown() local
61 auto ret = Store::FreeStore("/", devPath); in TearDown()
/base/update/updater/services/updater_binary/
Dupdate_image_block.cpp136 std::string devPath; member
174 infos.devPath = GetBlockDeviceByMountPoint(infos.partitionName); in GetUpdateBlockInfo()
175 LOG(INFO) << "ExecuteUpdateBlock::updating dev path : " << infos.devPath; in GetUpdateBlockInfo()
176 if (infos.devPath.empty()) { in GetUpdateBlockInfo()
282 int fd = open(infos.devPath.c_str(), O_RDWR | O_LARGEFILE); in DoExecuteUpdateBlock()
391 bool UScriptInstructionBlockCheck::ExecReadBlockInfo(const std::string &devPath, Uscript::UScriptCo… in ExecReadBlockInfo() argument
395 int fd = open(devPath.c_str(), O_RDWR | O_LARGEFILE); in ExecReadBlockInfo()
447 auto devPath = GetBlockDeviceByMountPoint(partitionName); in Execute() local
448 LOG(INFO) << "UScriptInstructionBlockCheck::dev path : " << devPath; in Execute()
451 if (devPath.empty() || (!ExecReadBlockInfo(devPath, context, mountTime, mountCount))) { in Execute()
[all …]
Dupdate_image_patch.cpp71 para.devPath = GetBlockDeviceByMountPoint(para.partName); in GetParam()
72 if (para.devPath.empty()) { in GetParam()
99 std::unique_ptr<DataWriter> writer = DataWriter::CreateDataWriter(WRITE_RAW, para.devPath); in ApplyPatch()
166 if (!Utils::CopyFile(para.devPath, srcFile)) { in GetSourceFile()
167 LOG(ERROR) << "copy " << para.devPath << " to " << srcFile << " failed"; in GetSourceFile()
252 para.devPath = GetBlockDeviceByMountPoint(para.partName); in GetParam()
253 if (para.devPath.empty()) { in GetParam()
257 LOG(INFO) << "dev path: " << para.devPath; in GetParam()
264 if (PatchMapFile(para.devPath, mapBuffer) != UpdatePatch::PATCH_SUCCESS) { in CheckHash()
Dupdate_image_block.h36 bool ExecReadBlockInfo(const std::string &devPath, Uscript::UScriptContext &context,
46 int ExecReadShaInfo(const std::string &devPath, const std::string &blockPairs,
Dupdate_image_patch.h29 std::string devPath {};
54 std::string devPath {};
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
Dfs_hvb.c371 char devPath[FS_HVB_DEVPATH_MAX_LEN] = {0}; in FsHvbConstructVerityTarget() local
381 if (snprintf_s(&devPath[0], sizeof(devPath), sizeof(devPath) - 1, "%s%s", in FsHvbConstructVerityTarget()
387 BEGET_LOGE("puck devPath=%s", &devPath[0]); in FsHvbConstructVerityTarget()
394 RETURN_ERR_IF_APPEND_STRING_ERR(&p, end, &devPath[0], strlen(devPath)); in FsHvbConstructVerityTarget()
396 RETURN_ERR_IF_APPEND_STRING_ERR(&p, end, &devPath[0], strlen(devPath)); in FsHvbConstructVerityTarget()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/include/
Dfs_dm.h37 int FsDmInitDmDev(char *devPath);
/base/msdp/device_status/services/device_manager/include/
Ddevice.h78 void SetDevPath(const std::string &devPath) override;
138 inline void Device::SetDevPath(const std::string &devPath) in SetDevPath() argument
140 devPath_ = devPath; in SetDevPath()
Ddevice_manager.h85 std::shared_ptr<IDevice> FindDevice(const std::string &devPath);
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/
Dfs_dm.c268 int FsDmInitDmDev(char *devPath) in FsDmInitDmDev() argument
274 if (devPath == NULL) { in FsDmInitDmDev()
279 devName = basename(devPath); in FsDmInitDmDev()
/base/msdp/device_status/services/context/include/
Di_device.h43 virtual void SetDevPath(const std::string &devPath) = 0;
/base/startup/init/interfaces/innerkits/fs_manager/
Dfstab_mount.c98 int DoFormat(const char *devPath, const char *fsType) in DoFormat() argument
100 if (devPath == NULL || fsType == NULL) { in DoFormat()
116 "/bin/mke2fs", "-F", "-t", (char *)fsType, "-b", blockSizeBuffer, (char *)devPath, NULL in DoFormat()
124 … "/bin/mkfs.f2fs", "-d1", "-O", "encrypt", "-O", "quota", "-O", "verity", (char *)devPath, NULL in DoFormat()
128 … "/bin/make_f2fs", "-d1", "-O", "encrypt", "-O", "quota", "-O", "verity", (char *)devPath, NULL in DoFormat()
/base/update/updater/services/include/fs_manager/
Dpartitions.h71 std::string devPath; member
/base/startup/init/interfaces/innerkits/include/fs_manager/
Dfs_manager.h90 int DoFormat(const char *devPath, const char *fsType);
/base/update/updater/test/unittest/fs_manager/
Ddo_partition_unittest.cpp127 myDev.devPath = "xxxxxx";
/base/msdp/device_status/tools/vdev/src/
Dvirtual_device_builder.cpp413 const std::string devPath { DEV_INPUT_PATH + devNode }; in ScanFor() local
419 if (stat(devPath.c_str(), &statbuf) != 0) { in ScanFor()
425 auto vdev = std::make_shared<VirtualDevice>(devPath); in ScanFor()
/base/startup/appspawn/standard/
Dappspawn_process.c57 char *devPath = "/dev/asanlog"; in SetAsanEnabledEnv() local
64 "log_path=%s/asan.log:include=/system/etc/asan.options", devPath); in SetAsanEnabledEnv()