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:
parent
83e703e7a8
commit
9ef0a9e8aa
4 changed files with 23 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue