Home
last modified time | relevance | path

Searched refs:dest_path (Results 1 – 2 of 2) sorted by relevance

/system/core/sdcard/
Dsdcard.cpp101 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 …atic bool sdcardfs_setup_bind_remount(const std::string& source_path, const std::string& dest_path, 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()
145 if (umount2(dest_path.c_str(), MNT_DETACH)) 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()
162 return sdcardfs_setup_bind_remount(default_path, dest_path, gid, mask); in sdcardfs_setup_secondary()
/system/apex/apexd/
Dapexd.cpp793 const auto& dest_path = backup_path_fn(*apex_file); in BackupActivePackages() local
794 if (link(apex_file->GetPath().c_str(), dest_path.c_str()) != 0) { in BackupActivePackages()
1637 std::string dest_path = StageDestPath(*apex_file); in stagePackages() local
1638 if (access(dest_path.c_str(), F_OK) == 0) { in stagePackages()
1639 LOG(DEBUG) << dest_path << " already exists. Deleting"; in stagePackages()
1640 if (TEMP_FAILURE_RETRY(unlink(dest_path.c_str())) != 0) { in stagePackages()
1641 return ErrnoError() << "Failed to unlink " << dest_path; in stagePackages()
1645 if (link(apex_file->GetPath().c_str(), dest_path.c_str()) != 0) { in stagePackages()
1648 << dest_path; in stagePackages()
1650 staged_files.insert(dest_path); in stagePackages()
[all …]