git-annex/Database
Joey Hess ce73a96e4e
use InodeCache when dropping a key to see if a pointer file can be safely reset
The Keys database can hold multiple inode caches for a given key. One for
the annex object, and one for each pointer file, which may not be hard
linked to it.

Inode caches for a key are recorded when its content is added to the annex,
but only if it has known pointer files. This is to avoid the overhead of
maintaining the database when not needed.

When the smudge filter outputs a file's content, the inode cache is not
updated, because git's smudge interface doesn't let us write the file. So,
dropping will fall back to doing an expensive verification then. Ideally,
git's interface would be improved, and then the inode cache could be
updated then too.
2015-12-09 17:54:54 -04:00
..
Keys add inode cache to the db 2015-12-09 17:00:37 -04:00
Fsck.hs associated files database 2015-12-07 14:35:37 -04:00
Handle.hs stash DbHandle in Annex state 2015-12-09 14:55:47 -04:00
Keys.hs use InodeCache when dropping a key to see if a pointer file can be safely reset 2015-12-09 17:54:54 -04:00
Types.hs add inode cache to the db 2015-12-09 17:00:37 -04:00