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 https://github.com/libguestfs/nbdkit/blob/master/plugins/example2/example2.c,
25 nbdkit(1), nbdkit-plugin(3)
26
28 Richard W.M. Jones
29
31 Copyright (C) 2013 Red Hat Inc.
32
34 Redistribution and use in source and binary forms, with or without
35 modification, are permitted provided that the following conditions are
36 met:
37
38 · Redistributions of source code must retain the above copyright
39 notice, this list of conditions and the following disclaimer.
40
41 · Redistributions in binary form must reproduce the above copyright
42 notice, this list of conditions and the following disclaimer in the
43 documentation and/or other materials provided with the
44 distribution.
45
46 · Neither the name of Red Hat nor the names of its contributors may
47 be used to endorse or promote products derived from this software
48 without specific prior written permission.
49
50 THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY
51 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
52 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
53 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE
54 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
55 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
56 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
57 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
58 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
59 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
60 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
61
62
63
64nbdkit-1.12.3 2019-05-21 nbdkit-example2-plugin(1)