Lines Matching refs:source_path
101 static bool sdcardfs_setup(const std::string& source_path, const std::string& dest_path, in sdcardfs_setup() argument
121 if (mount(source_path.c_str(), dest_path.c_str(), use_esdfs ? "esdfs" : "sdcardfs", in sdcardfs_setup()
132 static bool sdcardfs_setup_bind_remount(const std::string& source_path, const std::string& dest_pat… in sdcardfs_setup_bind_remount() argument
136 if (mount(source_path.c_str(), dest_path.c_str(), nullptr, in sdcardfs_setup_bind_remount()
142 if (mount(source_path.c_str(), dest_path.c_str(), "none", in sdcardfs_setup_bind_remount()
154 const std::string& source_path, const std::string& dest_path, in sdcardfs_setup_secondary() argument
159 return sdcardfs_setup(source_path, dest_path, fsuid, fsgid, multi_user, userid, gid, mask, in sdcardfs_setup_secondary()
166 static void run_sdcardfs(const std::string& source_path, const std::string& label, uid_t uid, in run_sdcardfs() argument
178 if (!sdcardfs_setup(source_path, dest_path_default, uid, gid, multi_user, userid, in run_sdcardfs()
181 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_read, uid, gid, in run_sdcardfs()
184 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_write, uid, gid, in run_sdcardfs()
187 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_full, uid, gid, in run_sdcardfs()
196 if (!sdcardfs_setup(source_path, dest_path_default, uid, gid, multi_user, userid, in run_sdcardfs()
199 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_read, uid, gid, in run_sdcardfs()
202 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_write, uid, gid, in run_sdcardfs()
205 !sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_full, uid, gid, in run_sdcardfs()
216 std::string obb_path = source_path + "/obb"; in run_sdcardfs()
236 const char *source_path = NULL; in main() local
289 if (!source_path) { in main()
290 source_path = arg; in main()
299 if (!source_path) { in main()
324 run_sdcardfs(source_path, label, uid, gid, userid, multi_user, full_write, derive_gid, in main()