filters/cache/cache.c
/* Force an early call to cache_get_size, consequently truncating the
 * cache to the correct size.
 */
Force an early call to cache_get_size, consequently truncating the
cache to the correct size.
Force an early call to cache_get_size consequently truncating the cache to the correct size .
static int
cache_prepare (struct nbdkit_next_ops *next_ops, void *nxdata,
               void *handle)
{
  int64_t r;
  r = cache_get_size (next_ops, nxdata, handle);
  if (r < 0)
    return -1;
  return 0;
}
static int cache_prepare ( struct nbdkit_next_ops * next_ops , void * nxdata , void * handle ) { int64_t r ; r = cache_get_size ( next_ops , nxdata , handle ) ; if ( r < 0 ) return -1 ; return 0 ; }
Force an early call to cache_get_size, consequently truncating the
 cache to the correct size.
Force an early call to cache_get_size consequently truncating the cache to the correct size .
/* TODO: cache per-connection FUA mode? */