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