filters/truncate/truncate.c
/* In prepare, force a call to get_size which sets the real_size & size
 * globals.
 */
In prepare, force a call to get_size which sets the real_size & size
globals.
In prepare force a call to get_size which sets the real_size & size globals .
static int
truncate_prepare (struct nbdkit_next_ops *next_ops, void *nxdata,
                  void *handle)
{
  int64_t r;
  r = truncate_get_size (next_ops, nxdata, handle);
  return r >= 0 ? 0 : -1;
}
static int truncate_prepare ( struct nbdkit_next_ops * next_ops , void * nxdata , void * handle ) { int64_t r ; r = truncate_get_size ( next_ops , nxdata , handle ) ; return r >= 0 ? 0 : -1 ; }
In prepare, force a call to get_size which sets the real_size & size
 globals.
In prepare force a call to get_size which sets the real_size & size globals .