Merge "Creat hardlink if active apexes are in the same partition" am: fea0bb7135

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2372652

Change-Id: I9477ba59572ff2fdc1d526b049d9966f8e2db808
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Zhi Dou
2023-01-20 15:46:32 +00:00
committed by Automerger Merge Worker

View File

@@ -249,7 +249,7 @@ class RollbackStore {
targetDir.mkdirs();
File targetFile = new File(targetDir, sourceFile.getName());
boolean fallbackToCopy = !isLinkPossible(sourceFile, targetFile);
boolean fallbackToCopy = !isLinkPossible(sourceFile, targetDir);
if (!fallbackToCopy) {
try {
// Create a hard link to avoid copy