Lines Matching refs:mount_point
294 const std::string& mount_point = args[3]; in MountFn() local
311 if (mount_point.empty()) { in MountFn()
320 selabel_lookup(sehandle, &secontext, mount_point.c_str(), 0755); in MountFn()
324 mkdir(mount_point.c_str(), 0755); in MountFn()
332 if (mount(location.c_str(), mount_point.c_str(), fs_type.c_str(), in MountFn()
334 uiPrintf(state, "%s: Failed to mount %s at %s: %s", name, location.c_str(), mount_point.c_str(), in MountFn()
339 return StringValue(mount_point); in MountFn()
352 const std::string& mount_point = args[0]; in IsMountedFn() local
353 if (mount_point.empty()) { in IsMountedFn()
359 MountedVolume* vol = find_mounted_volume_by_mount_point(mount_point.c_str()); in IsMountedFn()
364 return StringValue(mount_point); in IsMountedFn()
375 const std::string& mount_point = args[0]; in UnmountFn() local
376 if (mount_point.empty()) { in UnmountFn()
382 MountedVolume* vol = find_mounted_volume_by_mount_point(mount_point.c_str()); in UnmountFn()
384 uiPrintf(state, "Failed to unmount %s: No such volume", mount_point.c_str()); in UnmountFn()
389 uiPrintf(state, "Failed to unmount %s: %s", mount_point.c_str(), strerror(errno)); in UnmountFn()
393 return StringValue(mount_point); in UnmountFn()
435 const std::string& mount_point = args[4]; in FormatFn() local
447 if (mount_point.empty()) { in FormatFn()
471 if (auto status = exec_cmd({ "/system/bin/e2fsdroid", "-e", "-a", mount_point, location }); in FormatFn()
495 if (auto status = exec_cmd({ "/system/bin/sload_f2fs", "-t", mount_point, location }); in FormatFn()