1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-03 07:31:00 +01:00

Fix hard linking issue causing overlay fs copy-ups

This commit is contained in:
John Ericson 2023-07-25 10:28:11 -04:00
parent 83e703e7a8
commit 9ef0a9e8aa
4 changed files with 23 additions and 3 deletions

View file

@ -209,6 +209,13 @@ void LocalOverlayStore::optimiseStore()
}
}
Path LocalOverlayStore::toRealPathForHardLink(const StorePath & path)
{
return lowerStore->isValidPath(path)
? lowerStore->Store::toRealPath(path)
: Store::toRealPath(path);
}
static RegisterStoreImplementation<LocalOverlayStore, LocalOverlayStoreConfig> regLocalOverlayStore;
}