diff options
author | Joey Hess <joey@kitenet.net> | 2014-07-25 20:56:28 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-07-25 20:56:28 -0400 |
commit | 773641346f1c9c0d45855585ec780f7b63004f24 (patch) | |
tree | 9b6af1d41068cbd7c28cbebcec0d7abb95ff96fc | |
parent | 4c359d354231d2a1972307469d278e2fcb3fe0f0 (diff) |
devblog
-rw-r--r-- | doc/devblog/day_203__in_the_weeds.mdwn | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/devblog/day_203__in_the_weeds.mdwn b/doc/devblog/day_203__in_the_weeds.mdwn new file mode 100644 index 000000000..a8cf1787a --- /dev/null +++ b/doc/devblog/day_203__in_the_weeds.mdwn @@ -0,0 +1,39 @@ +A lil bit in the weeds on the chunking rewrite right now. I did succeed in +writing the core chunk generation code, which can be used for every special +remote. It was pretty hairy (needs to stream large files in constant +memory, separating into chunks, and get the progress display right +across operations on chunks, etc). That took most of the day. + +Ended up getting stuck in integrating the encryptable remote code, and had +to revert changes that could have led to rewriting (or perhaps +eliminating?) most of the per-remote encryption specific code. + +Up till now, this has supported both encrypted and non-encrypted remotes; +it was simply passed encrypted keys for an encrypted remote: + +[[!format haskell """ +remove :: Key -> Annex Bool +"""]] + +But with chunked encrypted keys, it seems it needs to be more complicated: + +[[!format haskell """ +remove' :: Maybe (Key -> Key) -> ChunkConfig -> Key -> Annex Bool +"""]] + +So that when the remote is configured to use chunking, it can look up +the chunk keys, and then encrypt them, in order to remove all the encrypted +chunk keys. + +I don't like that complication, so want to find a cleaner +abstraction. Will sleep on it. + +---- + +While I was looking at the encryptable remote generator, I realized +the remote cost was being calculated wrongly for special +remotes that are not encrypted. Fixed that bug. + +---- + +Today's work was sponsored by bak. |