Update Red Hat Copyright Notices
[nbdkit.git] / filters / cacheextents / nbdkit-cacheextents-filter.pod
blob77dc680c8350da9501496ad924c7c5ebce1556ad
1 =head1 NAME
3 nbdkit-cacheextents-filter - cache extents
5 =head1 SYNOPSIS
7  nbdkit --filter=cacheextents plugin
9 =head1 DESCRIPTION
11 C<nbdkit-cacheextents-filter> is a filter that caches the result of last
12 extents() call.
14 A common use for this filter is to improve performance when using a
15 client performing a linear pass over the entire image while asking for
16 only one extent at a time (such as S<C<qemu-img convert>>), but where
17 the plugin can provide multiple extents for the same high latency as a
18 single extent (such as L<nbdkit-vddk-plugin(1)>).  For example:
20  nbdkit -U - --filter=cacheextents --run 'qemu-img map $nbd' vddk ...
22 For files with big extents (when it is unlikely for one extents() call
23 to return multiple different extents) this does not slow down the
24 access.
26 This filter only caches image metadata; to also cache image contents,
27 place this filter between L<nbdkit-cache-filter(1)> and the plugin.
29 =head1 PARAMETERS
31 There are no parameters specific to nbdkit-cacheextents-filter.  Any
32 parameters are passed through to and processed by the underlying
33 plugin in the normal way.
35 =head1 FILES
37 =over 4
39 =item F<$filterdir/nbdkit-cacheextents-filter.so>
41 The filter.
43 Use C<nbdkit --dump-config> to find the location of C<$filterdir>.
45 =back
47 =head1 VERSION
49 C<nbdkit-cacheextents-filter> first appeared in nbdkit 1.14.
51 =head1 SEE ALSO
53 L<nbdkit(1)>,
54 L<nbdkit-cache-filter(1)>,
55 L<nbdkit-extentlist-filter(1)>,
56 L<nbdkit-readahead-filter(1)>,
57 L<nbdkit-scan-filter(1)>,
58 L<nbdkit-vddk-plugin(1)>,
59 L<nbdkit-filter(3)>,
60 L<qemu-img(1)>.
62 =head1 AUTHORS
64 Martin Kletzander
66 =head1 COPYRIGHT
68 Copyright Red Hat