Home
last modified time | relevance | path

Searched refs:mountPoint (Results 1 - 15 of 15) sorted by relevance

/base/update/updater/services/fs_manager/
H A Dmount.cpp55 return GetMountStatusForMountPoint(item->mountPoint); in GetMountStatusForPath()
81 LOG(DEBUG) << "\tMount point : " << item->mountPoint; in LoadFstab()
108 MountStatus rc = GetMountStatusForMountPoint(item->mountPoint); in UmountForPath()
117 int ret = umount(item->mountPoint); in UmountForPath()
119 LOG(ERROR) << "Umount " << item->mountPoint << "failed: " << errno; in UmountForPath()
166 int MountSdcard(std::string &path, std::string &mountPoint) in MountSdcard() argument
168 if (path.empty() || mountPoint.empty()) { in MountSdcard()
169 LOG(ERROR) << "path or mountPoint is null, mount fail"; in MountSdcard()
172 MountStatus rc = GetMountStatusForMountPoint(mountPoint.c_str()); in MountSdcard()
181 if (mount(path.c_str(), mountPoint in MountSdcard()
333 GetBlockDeviceByMountPoint(const std::string &mountPoint) GetBlockDeviceByMountPoint() argument
352 GetBlockDevicesByMountPoint(const std::string &mountPoint) GetBlockDevicesByMountPoint() argument
[all...]
/base/startup/init/interfaces/innerkits/fs_manager/switch_root/
H A Dswitch_root.c106 const char *mountPoint = item->mountPoint; in MountToNewTarget() local
107 if (mountPoint == NULL || strcmp(mountPoint, "/") == 0 || in MountToNewTarget()
108 strcmp(mountPoint, target) == 0) { in MountToNewTarget()
112 if (snprintf_s(newMountPoint, PATH_MAX, PATH_MAX - 1, "%s%s", target, mountPoint) == -1) { in MountToNewTarget()
113 INIT_LOGW("Cannot build new mount point for old mount point \" %s \"", mountPoint); in MountToNewTarget()
118 if (!UnderBasicMountPoint(mountPoint)) { in MountToNewTarget()
119 INIT_LOGV("Move mount %s to %s", mountPoint, newMountPoint); in MountToNewTarget()
120 if (mount(mountPoint, newMountPoin in MountToNewTarget()
[all...]
/base/update/sys_installer/services/module_update/src/
H A Dmodule_update.cpp102 bool CheckModulePackage(const std::string &mountPoint, const ModuleFile &moduleFile) in CheckModulePackage() argument
104 if (!IsEmptyFolder(mountPoint)) { in CheckModulePackage()
105 LOG(ERROR) << mountPoint << " is not empty"; in CheckModulePackage()
124 string mountPoint = string(MODULE_ROOT_DIR) + "/" + hmpName; in RemoveMountPoint() local
125 LOG(INFO) << "Remove old mountpoint " << mountPoint; in RemoveMountPoint()
126 if (!CheckPathExists(mountPoint)) { in RemoveMountPoint()
127 LOG(INFO) << mountPoint << " doesn't exist."; in RemoveMountPoint()
135 if (Loop::RemoveDmLoopDevice(mountPoint, imagePath)) { in RemoveMountPoint()
137 LOG(INFO) << "Successful remove dm loop device, mountPoint=" << mountPoint in RemoveMountPoint()
341 string mountPoint = string(MODULE_ROOT_DIR) + "/" + moduleFile.GetVersionInfo().hmpName; MountModulePackage() local
[all...]
H A Dmodule_loop.cpp340 bool RemoveDmLoopDevice(const std::string &mountPoint, const std::string &imagePath) in RemoveDmLoopDevice() argument
366 if (umount(mountPoint.c_str()) != 0) { in RemoveDmLoopDevice()
367 LOG(WARNING) << "Could not umount " << mountPoint << " errno: " << errno; in RemoveDmLoopDevice()
/base/update/updater/services/include/fs_manager/
H A Dmount.h29 int MountSdcard(std::string &mountPoint, std::string &path);
31 const std::string GetBlockDeviceByMountPoint(const std::string &mountPoint);
32 const std::vector<std::string> GetBlockDevicesByMountPoint(const std::string &mountPoint);
/base/startup/init/interfaces/innerkits/fs_manager/
H A Dfstab_mount.c51 __attribute__((weak)) void InitPostMount(const char *mountPoint, int rc) in InitPostMount() argument
453 BEGET_LOGI("Mount device %s to %s", item->deviceName, item->mountPoint); in DoMountOneItem()
458 item->mountPoint); in DoMountOneItem()
463 rc = Mount(item->deviceName, item->mountPoint, item->fsType, mountFlags, fsSpecificData); in DoMountOneItem()
475 rc = Mount(item->deviceName, item->mountPoint, item->fsType, mountFlags, fsSpecificData); in DoMountOneItem()
480 BEGET_LOGE("Mount device %s to %s failed, err = %d, retry", item->deviceName, item->mountPoint, errno); in DoMountOneItem()
494 if (rc == 0 && strcmp(item->mountPoint, "/usr") == 0) { in MountItemByFsType()
506 if (rc == 0 && strcmp(item->mountPoint, "/usr") == 0) { in MountItemByFsType()
527 if (strcmp(item->mountPoint, "/data") == 0 && IsSupportedDataType(item->fsType)) { in MountOneItem()
537 } else if (strcmp(item->fsType, "ext4") == 0 && strcmp(item->mountPoint, "/dat in MountOneItem()
[all...]
H A Dfstab.c106 if (item->mountPoint != NULL) { in ReleaseFstabItem()
107 free(item->mountPoint); in ReleaseFstabItem()
108 item->mountPoint = NULL; in ReleaseFstabItem()
160 item->mountPoint = strdup(p); in ParseFstabPerLine()
161 BEGET_ERROR_CHECK(item->mountPoint != NULL, break, "strdup mountPoint failed."); in ParseFstabPerLine()
255 if ((item->mountPoint != NULL) && (strcmp(item->mountPoint, mp) == 0)) { in FindFstabItemForMountPoint()
316 int GetBlockDeviceByMountPoint(const char *mountPoint, const Fstab *fstab, char *deviceName, int nameLen) in GetBlockDeviceByMountPoint() argument
318 if (fstab == NULL || mountPoint in GetBlockDeviceByMountPoint()
451 GetMountFlags(char *mountFlag, char *fsSpecificData, size_t fsSpecificDataSize, const char *mountPoint) GetMountFlags() argument
[all...]
/base/startup/init/interfaces/innerkits/fs_manager/erofs_overlay/
H A Derofs_mount_overlay.c277 AllocDmName(item->mountPoint, nameRofs, MAX_BUFFER_LEN, nameExt4, MAX_BUFFER_LEN); in GetOverlayDevice()
385 INIT_STATIC void UnlinkMountPoint(const char *mountPoint) in UnlinkMountPoint() argument
388 if (!lstat(mountPoint, &statInfo)) { in UnlinkMountPoint()
390 unlink(mountPoint); in UnlinkMountPoint()
397 UnlinkMountPoint(item->mountPoint); in MountPartitionDevice()
398 if (mkdir(item->mountPoint, MODE_MKDIR) && (errno != EEXIST)) { in MountPartitionDevice()
399 BEGET_LOGE("mkdir mountPoint:%s failed.errno %d", item->mountPoint, errno); in MountPartitionDevice()
406 if (MountRofsDevice(devRofs, item->mountPoint)) { in MountPartitionDevice()
407 BEGET_LOGE("mount erofs dev [%s] on mnt [%s] failed", devRofs, item->mountPoint); in MountPartitionDevice()
[all...]
/base/update/updater/services/sdcard_update/
H A Dsdcard_update.cpp71 bool DoMountSdCard(std::vector<std::string> &sdCardStr, std::string &mountPoint, UpdaterParams &upParams) in DoMountSdCard() argument
81 if (MountSdcard(item, mountPoint) == 0) { in DoMountSdCard()
110 std::string mountPoint = std::string(SDCARD_PATH); in CheckSdcardPkgs() local
111 std::vector<std::string> sdcardStr = GetBlockDevicesByMountPoint(mountPoint); in CheckSdcardPkgs()
125 if (!DoMountSdCard(sdcardStr, mountPoint, upParams)) { in CheckSdcardPkgs()
H A Dsdcard_update.h40 bool DoMountSdCard(std::vector<std::string> &sdCardStr, std::string &mountPoint, UpdaterParams &upParams);
/base/startup/init/interfaces/innerkits/include/fs_manager/
H A Dfs_manager.h59 char *mountPoint; // Mount point member
93 int GetBlockDeviceByMountPoint(const char *mountPoint, const Fstab *fstab, char *deviceName, int nameLen);
105 const char *mountPoint);
/base/update/updater/services/include/applypatch/
H A Dpartition_record.h73 std::string GetMiscPartitionPath(const std::string &mountPoint = "/misc");
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/src/
H A Dfuse_daemon.cpp511 char mountPoint[MAX_FILE_NAME_LEN] = {0}; in FuseFsDaemonThread() local
512 int ret = snprintf_s(mountPoint, sizeof(mountPoint), MAX_FILE_NAME_LEN, "/dev/fd/%d", fuseFd); in FuseFsDaemonThread()
520 fuse_opt_add_arg(&args, mountPoint); in FuseFsDaemonThread()
530 if (fuse_session_mount(se, mountPoint) != 0) { in FuseFsDaemonThread()
/base/startup/init/test/unittest/innerkits/
H A Dinnerkits_unittest.cpp174 unsigned long flags = GetMountFlags(item->mountOptions, fsSpecificOptions, bufferSize, item->mountPoint); in HWTEST_F()
256 fstabItem.mountPoint = strdup(""); in HWTEST_F()
263 if (fstabItem.mountPoint != nullptr) { in HWTEST_F()
264 free(fstabItem.mountPoint); in HWTEST_F()
265 fstabItem.mountPoint = nullptr; in HWTEST_F()
/base/update/sys_installer/services/module_update/include/
H A Dmodule_loop.h67 bool RemoveDmLoopDevice(const std::string &mountPoint, const std::string &imagePath);

Completed in 8 milliseconds