3 nbdkit-example3-plugin - example nbdkit plugin
7 nbdkit example3 [size=SIZE]
11 nbdkit example3 size=1G
12 guestfish --ro --format=raw -a nbd://localhost
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
25 Mainly this is useful for testing nbdkit and as an example for writing
26 nbdkit plugins (L<nbdkit-plugin(3)>).
32 =item F<$plugindir/nbdkit-example3-plugin.so>
36 Use C<nbdkit --dump-config> to find the location of C<$plugindir>.
42 C<nbdkit-example3-plugin> first appeared in nbdkit 1.2.
46 L<https://github.com/libguestfs/nbdkit/blob/master/plugins/example3/example3.c>,
56 Copyright (C) 2013 Red Hat Inc.