naototty / s3backer

Automatically exported from code.google.com/p/s3backer
GNU General Public License v2.0
0 stars 0 forks source link

Feature request: change cache size #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be great to be able to change the size of the on-disk block cache 
between invocations of s3backer without having to throw away the entire cache. 
If the cache size is reduced, it should just be a matter of calling ftruncate 
to chop off the top of it; if it's grown, it should be possible to simply add 
on to the end of the file. It's very bad that if I realize my cache size is 
wrong, I have to throw away the whole thing and start over, which incurs a 
significant performance (and cost) hit while the cache is being repopulated.

Original issue reported on code.google.com by jikam...@gmail.com on 19 Oct 2010 at 4:27

GoogleCodeExporter commented 8 years ago

Original comment by archie.c...@gmail.com on 19 Oct 2010 at 4:52

GoogleCodeExporter commented 8 years ago

Original comment by archie.c...@gmail.com on 19 Oct 2010 at 4:52

GoogleCodeExporter commented 8 years ago
Fixed in r440.

Original comment by archie.c...@gmail.com on 20 Oct 2010 at 8:08

GoogleCodeExporter commented 8 years ago
You are my hero ;-)

Original comment by jikam...@gmail.com on 20 Oct 2010 at 8:11

GoogleCodeExporter commented 8 years ago

Original comment by archie.c...@gmail.com on 22 Oct 2010 at 8:00