• Home
  • Raw
  • Download

Lines Matching refs:mountPoint

54     return GetMountStatusForMountPoint(item->mountPoint);  in GetMountStatusForPath()
79 LOG(DEBUG) << "\tMount point : " << item->mountPoint; in LoadFstab()
106 MountStatus rc = GetMountStatusForMountPoint(item->mountPoint); in UmountForPath()
112 int ret = umount(item->mountPoint); in UmountForPath()
114 LOG(ERROR) << "Umount " << item->mountPoint << "failed: " << errno; in UmountForPath()
161 int MountSdcard(std::string &path, std::string &mountPoint) in MountSdcard() argument
163 if (path.empty() || mountPoint.empty()) { in MountSdcard()
167 MountStatus rc = GetMountStatusForMountPoint(mountPoint.c_str()); in MountSdcard()
176 if (mount(path.c_str(), mountPoint.c_str(), type, 0, nullptr) == 0) { in MountSdcard()
181 if (MountNtfsWithRetry(path, mountPoint) == 0) { in MountSdcard()
203 MountStatus rc = GetMountStatusForMountPoint(item->mountPoint); in MountForPath()
261 if (strcmp(item->mountPoint, "/") == 0) { in FormatPartition()
267 …LOG(ERROR) << "Try to format " << item->mountPoint << " with unsupported file system type: " << it… in FormatPartition()
301 std::string mountPoint(item->mountPoint); in SetupPartitions() local
303 if (mountPoint == "/" || mountPoint == "/tmp" || fsType == "none" || in SetupPartitions()
304 mountPoint == "/sdcard") { in SetupPartitions()
308 if (mountPoint == "/data" && isMountData) { in SetupPartitions()
309 if (MountForPath(mountPoint) != 0) { in SetupPartitions()
310 LOG(ERROR) << "Expected partition " << mountPoint << " is not mounted."; in SetupPartitions()
316 if (UmountForPath(mountPoint) != 0) { in SetupPartitions()
317 LOG(ERROR) << "Umount " << mountPoint << " failed"; in SetupPartitions()
325 const std::string GetBlockDeviceByMountPoint(const std::string &mountPoint) in GetBlockDeviceByMountPoint() argument
327 if (mountPoint.empty()) { in GetBlockDeviceByMountPoint()
331 std::string blockDevice = PARTITION_PATH + mountPoint; in GetBlockDeviceByMountPoint()
332 if (mountPoint[0] != '/') { in GetBlockDeviceByMountPoint()
333 blockDevice = PARTITION_PATH + "/" + mountPoint; in GetBlockDeviceByMountPoint()
336 FstabItem *item = FindFstabItemForMountPoint(*g_fstab, mountPoint.c_str()); in GetBlockDeviceByMountPoint()
344 const std::vector<std::string> GetBlockDevicesByMountPoint(const std::string &mountPoint) in GetBlockDevicesByMountPoint() argument
347 if (mountPoint.empty() || g_fstab == nullptr) { in GetBlockDevicesByMountPoint()
352 if ((item->mountPoint != NULL) && item->mountPoint == mountPoint) { in GetBlockDevicesByMountPoint()
358 std::string blockDevice = PARTITION_PATH + mountPoint; in GetBlockDevicesByMountPoint()
359 if (mountPoint[0] != '/') { in GetBlockDevicesByMountPoint()
360 blockDevice = PARTITION_PATH + "/" + mountPoint; in GetBlockDevicesByMountPoint()