summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge branch 'master' into newchunksGravatar Joey Hess2014-07-27
|\ | | | | | | | | Conflicts: doc/design/assistant/chunks.mdwn
| * updateGravatar Joey Hess2014-07-27
| |
* | use existing chunks even when chunk=0Gravatar Joey Hess2014-07-27
| | | | | | | | | | | | | | | | | | | | When chunk=0, always try the unchunked key first. This avoids the overhead of needing to read the git-annex branch to find the chunkcount. However, if the unchunked key is not present, go on and try the chunks. Also, when removing a chunked key, update the chunkcounts even when chunk=0.
* | reorgGravatar Joey Hess2014-07-27
| |
* | comment typoGravatar Joey Hess2014-07-27
| |
* | faster storeChunksGravatar Joey Hess2014-07-27
| | | | | | | | | | | | | | | | | | | | | | No need to process each L.ByteString chunk, instead ask it to split. Doesn't seem to have really sped things up much, but it also made the code simpler. Note that this does (and already did) buffer in memory. It seems that only the directory special remote could take advantage of streaming chunks to files w/o buffering, so probably won't add an interface to allow for that.
* | better Preparer interfaceGravatar Joey Hess2014-07-27
| | | | | | | | | | | | | | This will allow things like WebDAV to opean a single persistent connection and reuse it for all the chunked data. The crazy types allow for some nice code reuse.
* | update does for chunkingGravatar Joey Hess2014-07-26
| |
* | improve exception handlingGravatar Joey Hess2014-07-26
| | | | | | | | | | | | | | | | Push it down from needing to be done in every Storer, to being checked once inside ChunkedEncryptable. Also, catch exceptions from PrepareStorer and PrepareRetriever, just in case..
* | add some more exception handling primitivesGravatar Joey Hess2014-07-26
| |
* | better exception displayGravatar Joey Hess2014-07-26
| |
* | fix key checking when a directory special remote's directory is missingGravatar Joey Hess2014-07-26
| | | | | | | | | | The best thing to do in this case is return Left, so that anything that tries to access it will fail.
* | fix another fallback bugGravatar Joey Hess2014-07-26
| |
* | allM has slightly better memory useGravatar Joey Hess2014-07-26
| |
* | fix fallback to other chunk size when first does not have itGravatar Joey Hess2014-07-26
| |
| * Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2014-07-26
| |\
| * | devblogGravatar Joey Hess2014-07-26
| | |
* | | doc update for new chunkingGravatar Joey Hess2014-07-26
| | |
* | | fix buildGravatar Joey Hess2014-07-26
| | |
* | | fix buildGravatar Joey Hess2014-07-26
| | |
* | | convert directory special remote to using ChunkedEncryptableGravatar Joey Hess2014-07-26
| | | | | | | | | | | | | | | | | | | | | | | | And clean up legacy chunking code, which is in its own module now. So much cleaner! This commit was sponsored by Henrik Ahlgren
* | | Support for remotes that are chunkable and encryptable.Gravatar Joey Hess2014-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'd have liked to keep these two concepts entirely separate, but that are entagled: Storing a key in an encrypted and chunked remote need to generate chunk keys, encrypt the keys, chunk the data, encrypt the chunks, and send them to the remote. Similar for retrieval, etc. So, here's an implemnetation of all of that. The total win here is that every remote was implementing encrypted storage and retrival, and now it can move into this single place. I expect this to result in several hundred lines of code being removed from git-annex eventually! This commit was sponsored by Henrik Ahlgren.
* | | finish up basic chunked remote groundworkGravatar Joey Hess2014-07-26
| | | | | | | | | | | | | | | | | | | | | Chunk retrieval and reassembly, removal, and checking if all necessary chunks are present. This commit was sponsored by Damien Raude-Morvan.
* | | wordingGravatar Joey Hess2014-07-26
| | |
| | * added output of ls -lb in git directory to show that the file is not added ↵Gravatar https://www.google.com/accounts/o8/id?id=AItOawmURXBzaYE1gmVc-X9eLAyDat_6rHPl6702014-07-26
| | | | | | | | | | | | to the annex
| | * (no commit message)Gravatar https://www.google.com/accounts/o8/id?id=AItOawmURXBzaYE1gmVc-X9eLAyDat_6rHPl6702014-07-26
| | |
* | | reorgGravatar Joey Hess2014-07-26
| | |
* | | Merge branch 'master' into newchunksGravatar Joey Hess2014-07-26
|\| |
| | * Added a commentGravatar https://www.google.com/accounts/o8/id?id=AItOawk9nck8WX8-ADF3Fdh5vFo4Qrw1I_bJcR82014-07-26
| |/
| * Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2014-07-25
| |\
| * | devblogGravatar Joey Hess2014-07-25
| | |
| * | Fix cost calculation for non-encrypted remotes.Gravatar Joey Hess2014-07-25
| | | | | | | | | | | | | | | | | | Encyptable types of remotes that were not actually encrypted still had the encryptedRemoteCostAdj applied to their configured cost, which was a bug.
* | | support new style chunking in directory special remoteGravatar Joey Hess2014-07-25
| | | | | | | | | | | | | | | | | | | | | Only when storing non-encrypted so far, not retrieving or checking if a key is present or removing. This commit was sponsored by Renaud Casenave-Péré.
* | | core implementation of new style chunkingGravatar Joey Hess2014-07-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not yet used by any special remotes, but should not be too hard to add it to most of them. storeChunks is the hairy bit! It's loosely based on Remote.Directory.storeLegacyChunked. The object is read in using a lazy bytestring, which is streamed though, creating chunks as needed, without ever buffering more than 1 chunk in memory. Getting the progress meter update to work right was also fun, since progress meter values are absolute. Finessed by constructing an offset meter. This commit was sponsored by Richard Collins.
* | | use same hash directories for chunked key as are used for its parentGravatar Joey Hess2014-07-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids a proliferation of hash directories when using new-style chunking, and should improve performance since chunks are accessed in sequence and so should have a common locality. Of course, when a chunked key is encrypted, its hash directories have no relation to the parent key. This commit was sponsored by Christian Kellermann.
* | | thought about chunk key hashingGravatar Joey Hess2014-07-25
|/ /
| * Added a commentGravatar https://www.google.com/accounts/o8/id?id=AItOawlVUq_c3-lrQBculOEUu3yjvdavE7JbvEI2014-07-25
| |
| * add a note about direct modeGravatar https://www.google.com/accounts/o8/id?id=AItOawnG_weCiH6IleQfVmRPmFJflHQMHdAcDkU2014-07-25
| |
| * file a bugGravatar https://www.google.com/accounts/o8/id?id=AItOawnG_weCiH6IleQfVmRPmFJflHQMHdAcDkU2014-07-25
|/
* improve a bitGravatar Joey Hess2014-07-24
|
* Merge branch 'master' of ssh://git-annex.branchable.comGravatar Joey Hess2014-07-24
|\
* | devblogGravatar Joey Hess2014-07-24
| |
* | move meteredWriteFileChunks out of legacyGravatar Joey Hess2014-07-24
| |
* | implement chunk logsGravatar Joey Hess2014-07-24
| | | | | | | | | | | | | | Slightly tricky as they are not normal UUIDBased logs, but are instead maps from (uuid, chunksize) to chunkcount. This commit was sponsored by Frank Thomas.
* | improve chunk data typesGravatar Joey Hess2014-07-24
| |
* | prepare for new style chunkingGravatar Joey Hess2014-07-24
| | | | | | | | | | | | | | | | | | | | | | | | Moved old legacy chunking code, and cleaned up the directory and webdav remotes use of it, so when no chunking is configured, that code is not used. The config for new style chunking will be chunk=1M instead of chunksize=1M. There should be no behavior changes from this commit. This commit was sponsored by Andreas Laas.
* | add chunk metadata to KeyGravatar Joey Hess2014-07-24
| | | | | | | | | | | | | | | | Added new fields for chunk number, and chunk size. These will not appear in normal keys ever, but will be used for chunked data stored on special remotes. This commit was sponsored by Jouni K Seppanen.
* | document new chunk logfilesGravatar Joey Hess2014-07-24
| |
* | clarify field order reqirementGravatar Joey Hess2014-07-24
| |
* | updateGravatar Joey Hess2014-07-24
| |