unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Lots of files in /gnu/store/.links, but not in the store
@ 2016-10-07 22:34 Hartmut Goebel
  2016-10-15  8:24 ` Mark H Weaver
  0 siblings, 1 reply; 2+ messages in thread
From: Hartmut Goebel @ 2016-10-07 22:34 UTC (permalink / raw)
  To: help-guix

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.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Lots of files in /gnu/store/.links, but not in the store
  2016-10-07 22:34 Lots of files in /gnu/store/.links, but not in the store Hartmut Goebel
@ 2016-10-15  8:24 ` Mark H Weaver
  0 siblings, 0 replies; 2+ messages in thread
From: Mark H Weaver @ 2016-10-15  8:24 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: help-guix

Hartmut Goebel <h.goebel@crazy-compilers.com> 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/<hash>.  If it exists, a hard link to the existing
file is made instead.

      Mark

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-15  8:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-07 22:34 Lots of files in /gnu/store/.links, but not in the store Hartmut Goebel
2016-10-15  8:24 ` Mark H Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).