Lines Matching refs:mountPoint

55     return GetMountStatusForMountPoint(item->mountPoint);
81 LOG(DEBUG) << "\tMount point : " << item->mountPoint;
108 MountStatus rc = GetMountStatusForMountPoint(item->mountPoint);
117 int ret = umount(item->mountPoint);
119 LOG(ERROR) << "Umount " << item->mountPoint << "failed: " << errno;
166 int MountSdcard(std::string &path, std::string &mountPoint)
168 if (path.empty() || mountPoint.empty()) {
169 LOG(ERROR) << "path or mountPoint is null, mount fail";
172 MountStatus rc = GetMountStatusForMountPoint(mountPoint.c_str());
181 if (mount(path.c_str(), mountPoint.c_str(), type, 0, nullptr) == 0) {
186 if (MountNtfsWithRetry(path, mountPoint) == 0) {
208 MountStatus rc = GetMountStatusForMountPoint(item->mountPoint);
267 if (strcmp(item->mountPoint, "/") == 0) {
273 LOG(ERROR) << "Try to format " << item->mountPoint << " with unsupported file system type: " << item->fsType;
307 std::string mountPoint(item->mountPoint);
309 if (mountPoint == "/" || mountPoint == "/tmp" || fsType == "none" ||
310 mountPoint == "/sdcard") {
314 if (mountPoint == "/data" && isMountData) {
315 if (MountForPath(mountPoint) != 0) {
316 LOG(ERROR) << "Expected partition " << mountPoint << " is not mounted.";
324 if (UmountForPath(mountPoint) != 0) {
325 LOG(ERROR) << "Umount " << mountPoint << " failed";
333 const std::string GetBlockDeviceByMountPoint(const std::string &mountPoint)
335 if (mountPoint.empty()) {
336 LOG(ERROR) << "mountPoint empty error.";
339 std::string blockDevice = PARTITION_PATH + mountPoint;
340 if (mountPoint[0] != '/') {
341 blockDevice = PARTITION_PATH + "/" + mountPoint;
344 FstabItem *item = FindFstabItemForMountPoint(*g_fstab, mountPoint.c_str());
352 const std::vector<std::string> GetBlockDevicesByMountPoint(const std::string &mountPoint)
355 if (mountPoint.empty() || g_fstab == nullptr) {
356 LOG(ERROR) << "mountPoint or g_fstab empty error.";
360 if ((item->mountPoint != NULL) && item->mountPoint == mountPoint) {
366 std::string blockDevice = PARTITION_PATH + mountPoint;
367 if (mountPoint[0] != '/') {
368 blockDevice = PARTITION_PATH + "/" + mountPoint;