[tahoe-dev] Random access to files

zooko zooko at zooko.com
Tue Jan 27 13:12:19 UTC 2009


On Jan 27, 2009, at 0:59 AM, Shawn Willden wrote:

> 1.  Modify the pycryptopp AES interface to allow an option CTR  
> parameter, and to call SeekToIteration() if it's present.
> 2.  Modify CipherTextDownloader and Downloader in download.py to  
> allow specification of a byte range, and to have  
> CipherTextDownloader figure out which segments correspond to that  
> range and get only them.
> 3.  Modify the IDownloader interface to allow specification of a  
> byte range.
> 4.  Modify some client interfaces to allow specification of a byte  
> range.  In particular, the webapi GET command should notice and  
> honor the standard HTTP Content-Range header.

Sounds great!  I guess for step 2 we add get_range(offset=0,  
length=None) and we remove the call to self._download_all_segments in  
CiphertextDownloader.start():

http://allmydata.org/trac/tahoe/browser/src/allmydata/immutable/ 
download.py?rev=20090114224151- 
e01fd-9db587a52ce6f898030a068deca275b217191ed5#L706

I can't think of anything that would make this hard, and I would be  
happy to see that feature added, but I am focussing on the imminent  
Tahoe-1.3.0 release so I won't be working on it in the short term.

Regards,

Zooko



More information about the tahoe-dev mailing list