fsck --from remote --fast
Avoids expensive file transfers, at the expense of checking file size and/or contents. Required some reworking of the remote code.
This commit is contained in:
parent
e96726caa3
commit
61dbad505d
16 changed files with 109 additions and 47 deletions
|
@ -40,6 +40,7 @@ gen r _ _ =
|
|||
name = Git.repoDescribe r,
|
||||
storeKey = uploadKey,
|
||||
retrieveKeyFile = downloadKey,
|
||||
retrieveKeyFileCheap = downloadKeyCheap,
|
||||
removeKey = dropKey,
|
||||
hasKey = checkKey,
|
||||
hasKeyCheap = False,
|
||||
|
@ -48,8 +49,8 @@ gen r _ _ =
|
|||
remotetype = remote
|
||||
}
|
||||
|
||||
downloadKey :: Key -> Bool -> FilePath -> Annex Bool
|
||||
downloadKey key _ file = get =<< getUrls key
|
||||
downloadKey :: Key -> FilePath -> Annex Bool
|
||||
downloadKey key file = get =<< getUrls key
|
||||
where
|
||||
get [] = do
|
||||
warning "no known url"
|
||||
|
@ -58,6 +59,9 @@ downloadKey key _ file = get =<< getUrls key
|
|||
showOutput -- make way for download progress bar
|
||||
downloadUrl urls file
|
||||
|
||||
downloadKeyCheap :: Key -> FilePath -> Annex Bool
|
||||
downloadKeyCheap _ _ = return False
|
||||
|
||||
uploadKey :: Key -> Annex Bool
|
||||
uploadKey _ = do
|
||||
warning "upload to web not supported"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue