search for: 1dc17fd

Displaying 2 results from an estimated 2 matches for "1dc17fd".

2018 Dec 28
0
[PATCH nbdkit 2/9] cache: Add cache-on-read mode.
...saved in the cache (if there is sufficient +space) so the same data can be served more quickly later. + +=item B<cache-on-read=false> + +Do not cache read requests (this is the default). + =back =head1 ENVIRONMENT VARIABLES diff --git a/filters/cache/cache.c b/filters/cache/cache.c index 1dc17fd..b1c3d53 100644 --- a/filters/cache/cache.c +++ b/filters/cache/cache.c @@ -90,6 +90,9 @@ static enum cache_mode { CACHE_MODE_UNSAFE, } cache_mode = CACHE_MODE_WRITEBACK; +/* Cache read requests. */ +static bool cache_on_read = false; + static int cache_flush (struct nbdkit_next_ops *next_op...
2018 Dec 28
12
[PATCH nbdkit 0/9] cache: Implement cache-max-size and method of reclaiming space from the cache.
This patch series enhances the cache filter in a few ways, primarily adding a "cache-on-read" feature (similar to qemu's copyonread); and adding the ability to limit the cache size and the antecedent of that which is having a method to reclaim cache blocks. As the cache is stored as a sparse temporary file, reclaiming cache blocks simply means punching holes in the temporary file.