=head1 NAME

nbdkit-example2-plugin - example nbdkit plugin

=head1 SYNOPSIS

 nbdkit example2 file=FILENAME

=head1 DESCRIPTION

C<nbdkit-example2-plugin> is an example L<nbdkit(1)> plugin.

It serves the named C<FILENAME> over NBD, readonly.

Mainly this is useful for testing nbdkit and as an example for writing
nbdkit plugins (L<nbdkit-plugin(3)>).

=head1 DEBUG FLAGS

For extra debugging (only useful for developers) use
I<-D example2.extra=1>

=head1 FILES

=over 4

=item F<$plugindir/nbdkit-example2-plugin.so>

The plugin.

Use C<nbdkit --dump-config> to find the location of C<$plugindir>.

=back

=head1 VERSION

C<nbdkit-example2-plugin> first appeared in nbdkit 1.0.

=head1 SEE ALSO

L<https://github.com/libguestfs/nbdkit/blob/master/plugins/example2/example2.c>,
L<nbdkit(1)>,
L<nbdkit-plugin(3)>

=head1 AUTHORS

Richard W.M. Jones

=head1 COPYRIGHT

Copyright (C) 2013 Red Hat Inc.
