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

This commit is contained in:
Zhi Dou
2023-01-20 15:10:38 +00:00
committed by Gerrit Code Review

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