Update Red Hat Copyright Notices
[nbdkit.git] / plugins / example3 / nbdkit-example3-plugin.pod
blob69324f0de24edae4b33eee1ee0882b7d8dd17e14
1 =head1 NAME
3 nbdkit-example3-plugin - example nbdkit plugin
5 =head1 SYNOPSIS
7  nbdkit example3 [size=SIZE]
9 =head1 EXAMPLE
11  nbdkit example3 size=1G
12  guestfish --ro --format=raw -a nbd://localhost
14 =head1 DESCRIPTION
16 C<nbdkit-example3-plugin> is an example L<nbdkit(1)> plugin.
18 On each connection, it generates a temporary writable block device of
19 size C<SIZE>.  The disk is thrown away when the client disconnects.
21 The C<size=SIZE> parameter can use a number of common formats to
22 specify the size, eg. C<100M>, C<2G>.  If the parameter is omitted, it
23 defaults to 100M.
25 Mainly this is useful for testing nbdkit and as an example for writing
26 nbdkit plugins (L<nbdkit-plugin(3)>).
28 =head1 FILES
30 =over 4
32 =item F<$plugindir/nbdkit-example3-plugin.so>
34 The plugin.
36 Use C<nbdkit --dump-config> to find the location of C<$plugindir>.
38 =back
40 =head1 VERSION
42 C<nbdkit-example3-plugin> first appeared in nbdkit 1.0.
44 =head1 SEE ALSO
46 L<https://gitlab.com/nbdkit/nbdkit/blob/master/plugins/example3/example3.c>,
47 L<nbdkit(1)>,
48 L<nbdkit-plugin(3)>
50 =head1 AUTHORS
52 Richard W.M. Jones
54 =head1 COPYRIGHT
56 Copyright Red Hat