Merge "Creat hardlink if active apexes are in the same partition" am: fea0bb7135 am: f02f774e24
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2372652 Change-Id: Ia67bf32f9c58e39b7f9962ec64499640ea02d7b1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user