1nbdkit-example2-plugin(1) NBDKIT nbdkit-example2-plugin(1)
2
3
4
6 nbdkit-example2-plugin - example nbdkit plugin
7
9 nbdkit example2 file=FILENAME
10
12 "nbdkit-example2-plugin" is an example nbdkit(1) plugin.
13
14 It serves the named "FILENAME" over NBD, readonly.
15
16 Mainly this is useful for testing nbdkit and as an example for writing
17 nbdkit plugins (nbdkit-plugin(3)).
18
20 For extra debugging (only useful for developers) use -D
21 example2.extra=1
22
24 $plugindir/nbdkit-example2-plugin.so
25 The plugin.
26
27 Use "nbdkit --dump-config" to find the location of $plugindir.
28
30 "nbdkit-example2-plugin" first appeared in nbdkit 1.0.
31
33 https://github.com/libguestfs/nbdkit/blob/master/plugins/example2/example2.c,
34 nbdkit(1), nbdkit-plugin(3)
35
37 Richard W.M. Jones
38
40 Copyright (C) 2013 Red Hat Inc.
41
43 Redistribution and use in source and binary forms, with or without
44 modification, are permitted provided that the following conditions are
45 met:
46
47 · Redistributions of source code must retain the above copyright
48 notice, this list of conditions and the following disclaimer.
49
50 · Redistributions in binary form must reproduce the above copyright
51 notice, this list of conditions and the following disclaimer in the
52 documentation and/or other materials provided with the
53 distribution.
54
55 · Neither the name of Red Hat nor the names of its contributors may
56 be used to endorse or promote products derived from this software
57 without specific prior written permission.
58
59 THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY
60 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
61 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
62 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE
63 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
64 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
65 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
66 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
67 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
68 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
69 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70
71
72
73nbdkit-1.18.4 2020-04-16 nbdkit-example2-plugin(1)