Home
last modified time | relevance | path

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

12

/ohos5.0/base/update/updater/services/fs_manager/
H A Dmount.cpp115 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 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, 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 Dmodule_update.cpp104 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 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()
/ohos5.0/base/startup/init/interfaces/innerkits/fs_manager/erofs_overlay/
H A Derofs_mount_overlay.c279 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 Dfstab_mount.c458 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 Dfstab.c103 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 Dsdcard_update.cpp71 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 Dsdcard_update.h40 bool DoMountSdcard(std::vector<std::string> &sdcardStr, std::string &mountPoint);
/ohos5.0/base/update/updater/services/include/fs_manager/
H A Dmount.h27 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 Dnetwork_agent_template.h46 explicit NetworkAgentTemplate(std::weak_ptr<MountPoint> mountPoint) in NetworkAgentTemplate() argument
48 mountPoint_(mountPoint), in NetworkAgentTemplate()
50 mountPoint, in NetworkAgentTemplate()
H A Dkernel_talker.h44 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 Dfs_manager.h59 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 Dplugin_sub_container_test.cpp317 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 Dinnerkits_unittest.cpp174 …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 Dsoftbus_agent.cpp47 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 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()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/plugin/
H A Dplugin_sub_container.h59 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 Dsub_container.h70 void SetFormComponent(const RefPtr<Component>& mountPoint) in SetFormComponent() argument
72 formComponent_ = mountPoint; in SetFormComponent()
/ohos5.0/base/update/updater/services/include/applypatch/
H A Dpartition_record.h73 std::string GetMiscPartitionPath(const std::string &mountPoint = "/misc");
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/
H A Dsoftbus_agent.h32 explicit SoftbusAgent(std::weak_ptr<MountPoint> mountPoint);
/ohos5.0/base/update/sys_installer/services/module_update/include/
H A Dmodule_loop.h67 bool RemoveDmLoopDevice(const std::string &mountPoint, const std::string &imagePath);
/ohos5.0/foundation/multimedia/media_library/frameworks/utils/src/
H A Dmedia_privacy_manager.cpp142 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 Dinstalld_operator.cpp1097 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 Dsubsys-boot-deviceboot.md329 BEGET_LOGI("Mount %s to %s successful", item->deviceName, item->mountPoint);

12