summaryrefslogtreecommitdiff
path: root/TypeInternals.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-11-13 14:59:27 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-11-13 14:59:27 -0400
commit5fa25a812a8a03af9f6a5fdb3d06eb4d89ee06f5 (patch)
tree467341e52d23660eee3dc05c9935c961801374e5 /TypeInternals.hs
parentd4d65a3c923de1eece50463145e875326bfe57e9 (diff)
fsck improvements
* fsck: Check if annex.numcopies is satisfied. * fsck: Verify the sha1 of files when the SHA1 backend is used. * fsck: Verify the size of files when the WORM backend is used. * fsck: Allow specifying individual files to fsk if fscking everything is not desired. * fsck: Fix bug, introduced in 0.04, in detection of unused data.
Diffstat (limited to 'TypeInternals.hs')
-rw-r--r--TypeInternals.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/TypeInternals.hs b/TypeInternals.hs
index 4b5cff9d9..3078224b1 100644
--- a/TypeInternals.hs
+++ b/TypeInternals.hs
@@ -75,7 +75,9 @@ data Backend = Backend {
-- removes a key
removeKey :: Key -> Annex Bool,
-- checks if a backend is storing the content of a key
- hasKey :: Key -> Annex Bool
+ hasKey :: Key -> Annex Bool,
+ -- called during fsck to check a key
+ fsckKey :: Key -> Annex Bool
}
instance Show Backend where