aboutsummaryrefslogtreecommitdiff
path: root/Backend/URL.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 /Backend/URL.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 'Backend/URL.hs')
-rw-r--r--Backend/URL.hs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Backend/URL.hs b/Backend/URL.hs
index 830d343c5..b38ea71c9 100644
--- a/Backend/URL.hs
+++ b/Backend/URL.hs
@@ -20,8 +20,13 @@ backend = Backend {
getKey = keyValue,
storeFileKey = dummyStore,
retrieveKeyFile = downloadUrl,
+ -- allow keys to be removed; presumably they can always be
+ -- downloaded again
removeKey = dummyOk,
- hasKey = dummyOk
+ -- similarly, keys are always assumed to be out there on the web
+ hasKey = dummyOk,
+ -- and nothing needed to fsck
+ fsckKey = dummyOk
}
-- cannot generate url from filename
@@ -32,7 +37,6 @@ keyValue _ = return Nothing
dummyStore :: FilePath -> Key -> Annex Bool
dummyStore _ _ = return False
--- allow keys to be removed; presumably they can always be downloaded again
dummyOk :: Key -> Annex Bool
dummyOk _ = return True