Re: Lots of files in /gnu/store/.links, but not in the store

2016-10-15 Thread Mark H Weaver
Hartmut Goebel  writes:

> I hafe a huge pile of files in /gnu/store/.links/, but they seem not to
> belong to the store:

/gnu/store/.links is a content-addressed index of every file in the
store, used to implement deduplication.  When a file is added to the
store, a hash of its contents is computed and looked up in
/gnu/store/.links/.  If it exists, a hard link to the existing
file is made instead.

  Mark



Lots of files in /gnu/store/.links, but not in the store

2016-10-07 Thread Hartmut Goebel
Hi,

I hafe a huge pile of files in /gnu/store/.links/, but they seem not to
belong to the store:

[root guix]# /usr/bin/ls /gnu/store/.links/ | wc -l
33412
[root guix]# /usr/bin/ls /gnu/store/.links/ | sed
s'!^!/gnu/store/.links/!' | xargs -n1 guix gc -d
guix gc: error: build failed: path
`/gnu/store/.links/0002s1j2dmph0jcqj04z1a39li6fc9glyss3fscwg3nyd5n918q1'
is not in the Nix store
……
and so on.

I't not an error in the sed-command:
[root guix]# ls
/gnu/store/.links/0002s1j2dmph0jcqj04z1a39li6fc9glyss3fscwg3nyd5n918q1
/gnu/store/.links/0002s1j2dmph0jcqj04z1a39li6fc9glyss3fscwg3nyd5n918q1

How can I get rid of them?

-- 
Regards
Hartmut Goebel

| Hartmut Goebel  | h.goe...@crazy-compilers.com   |
| www.crazy-compilers.com | compilers which you thought are impossible |