Lines Matching refs:source_path
201 char source_path[PATH_MAX];
1780 ERROR("usage: sdcard [OPTIONS] <source_path> <label>\n"
1784 " -m: source_path is multi-user\n"
1816 static void run(const char* source_path, const char* label, uid_t uid,
1848 global.root.namelen = strlen(source_path);
1849 global.root.name = strdup(source_path);
1854 strcpy(global.source_path, source_path);
1858 snprintf(global.obb_path, sizeof(global.obb_path), "%s/obb", source_path);
1861 snprintf(global.obb_path, sizeof(global.obb_path), "%s/Android/obb", source_path);
1937 static int sdcardfs_setup(const char *source_path, const char *dest_path, uid_t fsuid,
1945 if (mount(source_path, dest_path, "sdcardfs",
1954 static void run_sdcardfs(const char* source_path, const char* label, uid_t uid,
1968 if (sdcardfs_setup(source_path, dest_path_default, uid, gid, multi_user, userid,
1970 || sdcardfs_setup(source_path, dest_path_read, uid, gid, multi_user, userid,
1972 || sdcardfs_setup(source_path, dest_path_write, uid, gid, multi_user, userid,
1981 if (sdcardfs_setup(source_path, dest_path_default, uid, gid, multi_user, userid,
1983 || sdcardfs_setup(source_path, dest_path_read, uid, gid, multi_user, userid,
1985 || sdcardfs_setup(source_path, dest_path_write, uid, gid, multi_user, userid,
2007 snprintf(obb_path, sizeof(obb_path), "%s/obb", source_path);
2060 const char *source_path = NULL;
2097 if (!source_path) {
2098 source_path = arg;
2107 if (!source_path) {
2132 run_sdcardfs(source_path, label, uid, gid, userid, multi_user, full_write);
2134 run(source_path, label, uid, gid, userid, multi_user, full_write);