Lines Matching refs:targets
681 int uid, const char* targets[], int size) { in umountStorageDirs() argument
692 if (TEMP_FAILURE_RETRY(umount2(targets[i], MNT_DETACH)) < 0 && errno != EINVAL && in umountStorageDirs()
695 targets[i], strerror(errno)); in umountStorageDirs()
719 int uid, const char* sources[], const char* targets[], int size) { in remountStorageDirs() argument
743 if (TEMP_FAILURE_RETRY(mkdir(targets[i], 0700)) == -1) { in remountStorageDirs()
745 targets[i], strerror(errno)); in remountStorageDirs()
748 if (TEMP_FAILURE_RETRY(mount(sources[i], targets[i], NULL, MS_BIND | MS_REC, NULL)) == -1) { in remountStorageDirs()
750 sources[i], targets[i], strerror(errno)); in remountStorageDirs()
789 std::unique_ptr<std::string[]> targets(new std::string[size]); in forkAndRemountStorage() local
798 targets[i] = getStorageDirTarget(userId, "Android/data", packageName); in forkAndRemountStorage()
800 targets[i+1] = getStorageDirTarget(userId, "Android/obb", packageName); in forkAndRemountStorage()
803 targets_cstr[i] = targets[i].c_str(); in forkAndRemountStorage()
805 targets_cstr[i+1] = targets[i+1].c_str(); in forkAndRemountStorage()