/ohos5.0/base/update/updater/services/fs_manager/ |
H A D | mount.cpp | 115 int ret = umount(item->mountPoint); in UmountForPath() 177 if (path.empty() || mountPoint.empty()) { in MountSdcard() 280 if (strcmp(item->mountPoint, "/") == 0) { in FormatPartition() 320 std::string mountPoint(item->mountPoint); in SetupPartitions() local 322 if (mountPoint == "/" || mountPoint == "/tmp" || fsType == "none" || in SetupPartitions() 323 mountPoint == "/sdcard") { in SetupPartitions() 337 if (UmountForPath(mountPoint) != 0) { in SetupPartitions() 348 if (mountPoint.empty()) { in GetBlockDeviceByMountPoint() 353 if (mountPoint[0] != '/') { in GetBlockDeviceByMountPoint() 373 if ((item->mountPoint != NULL) && item->mountPoint == mountPoint) { in GetBlockDevicesByMountPoint() [all …]
|
/ohos5.0/base/startup/init/interfaces/innerkits/fs_manager/switch_root/ |
H A D | switch_root.c | 106 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, newMountPoint, NULL, MS_MOVE, NULL) < 0) { in MountToNewTarget() 121 … INIT_LOGE("Failed to mount moving %s to %s, err = %d", mountPoint, newMountPoint, errno); in MountToNewTarget() 123 umount2(mountPoint, MNT_FORCE); in MountToNewTarget()
|
/ohos5.0/base/update/sys_installer/services/module_update/src/ |
H A D | module_update.cpp | 104 if (!IsEmptyFolder(mountPoint)) { in CheckModulePackage() 105 LOG(ERROR) << mountPoint << " is not empty"; in CheckModulePackage() 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() 146 ret = rmdir(mountPoint.c_str()); in RemoveMountPoint() 342 LOG(INFO) << "Creating mount point: " << mountPoint; in MountModulePackage() 345 if (!CreateDirIfNeeded(mountPoint, MOUNT_POINT_MODE)) { in MountModulePackage() 350 ret = rmdir(mountPoint.c_str()); in MountModulePackage() [all …]
|
H A D | module_loop.cpp | 340 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()
|
/ohos5.0/base/startup/init/interfaces/innerkits/fs_manager/erofs_overlay/ |
H A D | erofs_mount_overlay.c | 279 AllocDmName(item->mountPoint, nameRofs, MAX_BUFFER_LEN, nameExt4, MAX_BUFFER_LEN); in GetOverlayDevice() 411 static void UnlinkMountPoint(const char *mountPoint) in UnlinkMountPoint() argument 414 if (!lstat(mountPoint, &statInfo)) { in UnlinkMountPoint() 416 unlink(mountPoint); in UnlinkMountPoint() 423 UnlinkMountPoint(item->mountPoint); in MountPartitionDevice() 424 if (mkdir(item->mountPoint, MODE_MKDIR) && (errno != EEXIST)) { in MountPartitionDevice() 425 BEGET_LOGE("mkdir mountPoint:%s failed.errno %d", item->mountPoint, errno); in MountPartitionDevice() 432 if (MountRofsDevice(devRofs, item->mountPoint)) { in MountPartitionDevice() 437 if (strcmp(item->mountPoint, "/usr") == 0) { in MountPartitionDevice() 472 BEGET_LOGI("is ext4 devExt4 [%s] on mnt [%s]", devExt4, item->mountPoint); in MountPartitionDevice() [all …]
|
/ohos5.0/base/startup/init/interfaces/innerkits/fs_manager/ |
H A D | fstab_mount.c | 458 item->mountPoint); in DoMountOneItem() 494 if (rc == 0 && strcmp(item->mountPoint, "/usr") == 0) { in MountItemByFsType() 506 if (rc == 0 && strcmp(item->mountPoint, "/usr") == 0) { in MountItemByFsType() 553 if (rc == 0 && (strcmp(item->mountPoint, "/usr") == 0)) { in MountOneItem() 557 InitPostMount(item->mountPoint, rc, item->fsType); in MountOneItem() 714 BEGET_LOGI("Umount %s.", item->mountPoint); in UmountAllWithFstabFile() 715 MountStatus status = GetMountStatusForMountPoint(item->mountPoint); in UmountAllWithFstabFile() 721 item->mountPoint, item->deviceName, item->fsType); in UmountAllWithFstabFile() 724 rc = umount(item->mountPoint); in UmountAllWithFstabFile() 729 BEGET_LOGE("Umount %s successfully.", item->mountPoint); in UmountAllWithFstabFile() [all …]
|
H A D | fstab.c | 103 if (item->mountPoint != NULL) { in ReleaseFstabItem() 104 free(item->mountPoint); in ReleaseFstabItem() 105 item->mountPoint = NULL; in ReleaseFstabItem() 157 item->mountPoint = strdup(p); in ParseFstabPerLine() 158 BEGET_ERROR_CHECK(item->mountPoint != NULL, break, "strdup mountPoint failed."); in ParseFstabPerLine() 252 if ((item->mountPoint != NULL) && (strcmp(item->mountPoint, mp) == 0)) { in FindFstabItemForMountPoint() 315 if (fstab == NULL || mountPoint == NULL || *mountPoint == '\0' || deviceName == NULL) { in GetBlockDeviceByMountPoint() 318 FstabItem *item = FindFstabItemForMountPoint(*fstab, mountPoint); in GetBlockDeviceByMountPoint() 320 BEGET_LOGE("Failed to get fstab item from mount point \" %s \"", mountPoint); in GetBlockDeviceByMountPoint() 440 const char *mountPoint) in GetMountFlags() argument [all …]
|
/ohos5.0/base/update/updater/services/sdcard_update/ |
H A D | sdcard_update.cpp | 71 bool DoMountSdcard(std::vector<std::string> &sdcardStr, std::string &mountPoint) in DoMountSdcard() argument 78 if (MountSdcard(item, mountPoint) == 0) { in DoMountSdcard() 107 std::string mountPoint = std::string(SDCARD_PATH); in CheckSdcardPkgs() local 108 std::vector<std::string> sdcardStr = GetBlockDevicesByMountPoint(mountPoint); in CheckSdcardPkgs() 122 if (!DoMountSdcard(sdcardStr, mountPoint)) { in CheckSdcardPkgs()
|
H A D | sdcard_update.h | 40 bool DoMountSdcard(std::vector<std::string> &sdcardStr, std::string &mountPoint);
|
/ohos5.0/base/update/updater/services/include/fs_manager/ |
H A D | mount.h | 27 int MountSdcard(std::string &mountPoint, std::string &path); 29 const std::string GetBlockDeviceByMountPoint(const std::string &mountPoint); 30 const std::vector<std::string> GetBlockDevicesByMountPoint(const std::string &mountPoint);
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/ |
H A D | network_agent_template.h | 46 explicit NetworkAgentTemplate(std::weak_ptr<MountPoint> mountPoint) in NetworkAgentTemplate() argument 48 mountPoint_(mountPoint), in NetworkAgentTemplate() 50 mountPoint, in NetworkAgentTemplate()
|
H A D | kernel_talker.h | 44 explicit KernelTalker(std::weak_ptr<MountPoint> mountPoint, in KernelTalker() argument 47 …: mountPoint_(mountPoint), GetSessionCallback_(getSessionCallback), CloseSessionCallback_(closeSes… in KernelTalker()
|
/ohos5.0/base/startup/init/interfaces/innerkits/include/fs_manager/ |
H A D | fs_manager.h | 59 char *mountPoint; // Mount point member 93 int GetBlockDeviceByMountPoint(const char *mountPoint, const Fstab *fstab, char *deviceName, int na… 105 const char *mountPoint);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/plugin/ |
H A D | plugin_sub_container_test.cpp | 317 RefPtr<PluginComponent> mountPoint = AceType::MakeRefPtr<PluginComponent>(); variable 318 pluginSubContainer->SetPluginComponent(mountPoint); 387 RefPtr<PluginComponent> mountPoint = AceType::MakeRefPtr<PluginComponent>(); variable 388 pluginSubContainer->SetPluginComponent(mountPoint);
|
/ohos5.0/base/startup/init/test/unittest/innerkits/ |
H A D | innerkits_unittest.cpp | 174 …ed long flags = GetMountFlags(item->mountOptions, fsSpecificOptions, bufferSize, item->mountPoint); 256 fstabItem.mountPoint = strdup(""); 263 if (fstabItem.mountPoint != nullptr) { 264 free(fstabItem.mountPoint); 265 fstabItem.mountPoint = nullptr;
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_agent.cpp | 47 SoftbusAgent::SoftbusAgent(weak_ptr<MountPoint> mountPoint) : NetworkAgentTemplate(mountPoint) in SoftbusAgent() argument 49 auto spt = mountPoint.lock(); in SoftbusAgent()
|
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/src/ |
H A D | fuse_daemon.cpp | 511 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()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/plugin/ |
H A D | plugin_sub_container.h | 59 void SetPluginComponent(const RefPtr<Component>& mountPoint) in SetPluginComponent() argument 61 pluginComponent_ = mountPoint; in SetPluginComponent()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/form/ |
H A D | sub_container.h | 70 void SetFormComponent(const RefPtr<Component>& mountPoint) in SetFormComponent() argument 72 formComponent_ = mountPoint; in SetFormComponent()
|
/ohos5.0/base/update/updater/services/include/applypatch/ |
H A D | partition_record.h | 73 std::string GetMiscPartitionPath(const std::string &mountPoint = "/misc");
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/ |
H A D | softbus_agent.h | 32 explicit SoftbusAgent(std::weak_ptr<MountPoint> mountPoint);
|
/ohos5.0/base/update/sys_installer/services/module_update/include/ |
H A D | module_loop.h | 67 bool RemoveDmLoopDevice(const std::string &mountPoint, const std::string &imagePath);
|
/ohos5.0/foundation/multimedia/media_library/frameworks/utils/src/ |
H A D | media_privacy_manager.cpp | 142 static bool CheckFsMounted(const string &fsType, const string &mountPoint) in CheckFsMounted() argument 162 (strcmp(mountEntry.mnt_dir, mountPoint.c_str()) == 0)) { in CheckFsMounted()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/ |
H A D | installd_operator.cpp | 1097 std::string mountPoint; in InitialiseQuotaMounts() local 1101 if (!(lineStream >> device >> mountPoint >> fsType)) { in InitialiseQuotaMounts() 1106 if (mountPoint == QUOTA_DEVICE_DATA_PATH) { in InitialiseQuotaMounts() 1109 mQuotaReverseMounts[mountPoint] = device; in InitialiseQuotaMounts() 1111 mountPoint.c_str(), device.c_str()); in InitialiseQuotaMounts()
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-boot-deviceboot.md | 329 BEGET_LOGI("Mount %s to %s successful", item->deviceName, item->mountPoint);
|