Update Red Hat Copyright Notices
[nbdkit.git] / plugins / example2 / nbdkit-example2-plugin.pod
blobf911b8041a93649e37648b9c5fa7a5e9ca10a2e3
1 =head1 NAME
3 nbdkit-example2-plugin - example nbdkit plugin
5 =head1 SYNOPSIS
7  nbdkit example2 file=FILENAME
9 =head1 DESCRIPTION
11 C<nbdkit-example2-plugin> is an example L<nbdkit(1)> plugin.
13 It serves the named C<FILENAME> over NBD, readonly.
15 Mainly this is useful for testing nbdkit and as an example for writing
16 nbdkit plugins (L<nbdkit-plugin(3)>).
18 There are two variations of this plugin which can be found in the
19 source directory.  F<example2.c> is the regular plugin for Linux and
20 other Unix-like systems.  F<winexample2.c> is the same plugin written
21 for Windows using Win32 APIs to access the file.
23 =head1 DEBUG FLAGS
25 For extra debugging (only useful for developers) use
26 S<I<-D example2.extra=1>>
28 =head1 FILES
30 =over 4
32 =item F<$plugindir/nbdkit-example2-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-example2-plugin> first appeared in nbdkit 1.0.
44 =head1 SEE ALSO
46 L<https://gitlab.com/nbdkit/nbdkit/blob/master/plugins/example2/example2.c>,
47 L<https://gitlab.com/nbdkit/nbdkit/blob/master/plugins/example2/winexample2.c>,
48 L<nbdkit(1)>,
49 L<nbdkit-plugin(3)>
51 =head1 AUTHORS
53 Richard W.M. Jones
55 =head1 COPYRIGHT
57 Copyright Red Hat