5
nbdkit-example1-plugin - A minimal nbdkit plugin
9
nbdkit .../plugins/nbdkit-example1-plugin.so
13
C<nbdkit-example1-plugin> is a minimal L<nbdkit(1)> plugin.
15
It serves, readonly, from memory, a static blob of data which looks a
16
little bit like a 100 MB disk image that contains a single empty
19
Mainly this is useful for testing nbdkit and as an example for writing
20
nbdkit plugins (L<nbdkit-plugin(3)>).
24
L<example1.c> in the nbdkit source tree,
34
Copyright (C) 2013 Red Hat Inc.
38
Redistribution and use in source and binary forms, with or without
39
modification, are permitted provided that the following conditions are
46
Redistributions of source code must retain the above copyright
47
notice, this list of conditions and the following disclaimer.
51
Redistributions in binary form must reproduce the above copyright
52
notice, this list of conditions and the following disclaimer in the
53
documentation and/or other materials provided with the distribution.
57
Neither the name of Red Hat nor the names of its contributors may be
58
used to endorse or promote products derived from this software without
59
specific prior written permission.
63
THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND
64
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
65
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
66
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR
67
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
68
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
69
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
70
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
71
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
72
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
73
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF