add remote fsck interface
authorJoey Hess <joey@kitenet.net>
Fri, 11 Oct 2013 20:03:18 +0000 (16:03 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 11 Oct 2013 20:03:18 +0000 (16:03 -0400)
commit1ffb3bb0ba3c87d14b896dac2a308de9376a44f1
tree16e2a3f8008c9fec6bd5b5c7c2ce833b222399e6
parent7e723d2f568ba5899e063aa45f3bcd3890e579a3
add remote fsck interface

Currently only implemented for local git remotes. May try to add support
to git-annex-shell for ssh remotes later. Could concevably also be
supported by some special remote, although that seems unlikely.

Cronner user this when available, and when not falls back to
fsck --fast --from remote

git annex fsck --from does not itself use this interface.
To do so, I would need to pass --fast and all other options that influence
fsck on to the git annex fsck that it runs inside the remote. And that
seems like a lot of work for a result that would be no better than
cd remote; git annex fsck
This may need to be revisited if git-annex-shell gets support, since it
may be the case that the user cannot ssh to the server to run git-annex
fsck there, but can run git-annex-shell there.

This commit was sponsored by Damien Diederen.
15 files changed:
Assistant/Alert.hs
Assistant/Threads/Cronner.hs
Remote.hs
Remote/Bup.hs
Remote/Directory.hs
Remote/GCrypt.hs
Remote/Git.hs
Remote/Glacier.hs
Remote/Hook.hs
Remote/Rsync.hs
Remote/S3.hs
Remote/Web.hs
Remote/WebDAV.hs
Types/Remote.hs
Utility/Batch.hs