I was investigating why darcs was taking so long to do operations on a tiny
repo I just created, and it turns out that it's looking in ~/.darcs/cache,
which in my case has grown huge (and is NFS-mounted). I distinctly
remember turning off the cache at some point, and indeed I have no
~/.darcs/sources file.
I then removed my ~/.darcs/cache, but darcs is still looking for it (and
trying to create it!), as you'll see from the trace:
$ strace darcs cha |& grep '(sources|cache)'
open("/etc/ld.so.cache", O_RDONLY) = 3
stat("_darcs/prefs/sources", 0x2b0c9c77eb08) = -1 ENOENT (No such file or
directory)
open("/home/simonmar/darcs-all/work/wiki/_darcs/prefs/sources",
O_RDONLY|O_NOCTTY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
stat("/home/simonmar/.darcs/sources", 0x2b0c9c77ec98) = -1 ENOENT (No such
file or directory)
stat("_darcs/prefs/sources", 0x2b0c9c770af8) = -1 ENOENT (No such file or
directory)
open("/home/simonmar/darcs-all/work/wiki/_darcs/prefs/sources",
O_RDONLY|O_NOCTTY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
stat("/home/simonmar/.darcs/sources", 0x2b0c9c770c88) = -1 ENOENT (No such
file or directory)
stat("/home/simonmar/.darcs/cache/pristine.hashed", 0x2b0c9c766e18) = -1
ENOENT (No such file or directory)
mkdir("/home/simonmar/.darcs/cache/pristine.hashed", 0777) = -1 ENOENT (No
such file or directory)
stat("/home/simonmar/.darcs/cache/patches", 0x2b0c9c74b1c8) = -1 ENOENT (No
such file or directory)
mkdir("/home/simonmar/.darcs/cache/patches", 0777) = -1 ENOENT (No such
file or directory)
stat("/home/simonmar/.darcs/cache/patches", 0x2b0c9c774690) = -1 ENOENT (No
such file or directory)
mkdir("/home/simonmar/.darcs/cache/patches", 0777) = -1 ENOENT (No such
file or directory)
stat("/home/simonmar/.darcs/cache/patches", 0x2b0c9c774c88) = -1 ENOENT (No
such file or directory)
mkdir("/home/simonmar/.darcs/cache/patches", 0777) = -1 ENOENT (No such
file or directory)
stat("/home/simonmar/.darcs/cache/patches", 0x2b0c9c747518) = -1 ENOENT (No
such file or directory)
mkdir("/home/simonmar/.darcs/cache/patches", 0777) = -1 ENOENT (No such
file or directory)
stat("/home/simonmar/.darcs/cache/patches", 0x2b0c9c767388) = -1 ENOENT (No
such file or directory)
mkdir("/home/simonmar/.darcs/cache/patches", 0777) = -1 ENOENT (No such
file or directory)
What's going on? How do I turn off the cache?
Cheers,
Simon
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users