[Nix-dev] nix store: hardlink vs symlink (was Re: python application vs python environment)
Ludovic Courtès
ludo at gnu.org
Sun Sep 25 22:23:57 CEST 2011
Hi,
Florian Friesdorf <flo at chaoflow.net> skribis:
> On Sat, 24 Sep 2011 21:56:02 +0200, ludo at gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) wrote:
>> Hi Florian,
>>
>> Florian Friesdorf <flo at chaoflow.net> skribis:
>>
>> > Why is nix using symlinks to link files in the nix store?
>>
>> Because hard links don’t work across devices.
>
> But the links would be just intra-store links, or?
Sorry, I thought you were referring to why profiles use symlinks to the
store.
Within a store, using hard links is OK, yes, and ‘nix-store --optimise’
does exactly that.
Thanks,
Ludo’.
More information about the nix-dev
mailing list