1nbdkit-ones-plugin(1) NBDKIT nbdkit-ones-plugin(1)
2
3
4
6 nbdkit-ones-plugin - nbdkit plugin filled with repeated 0xff or other
7 bytes
8
10 nbdkit ones [[size=]SIZE] [byte=N]
11
13 "nbdkit-ones-plugin" is a plugin for nbdkit(1). Any read returns a
14 repeating pattern of 0xff (all ones) bytes, or another repeating byte
15 if you use the "byte" parameter. Everything written to the virtual
16 device is discarded.
17
18 Most NBD consumers will be very confused by this device. It is mainly
19 useful for testing. nbdkit-data-plugin(1) can be used to create a
20 modifiable RAM disk initialized with fixed data.
21
23 byte=N
24 Set the repeating byte to "N". The default is 0xff (all ones).
25
26 Instead of "byte=0" it is more efficient to use
27 nbdkit-null-plugin(1).
28
29 [size=]SIZE
30 Specify the virtual size of the disk image.
31
32 This parameter is optional. If omitted then a zero-sized device is
33 created.
34
35 "size=" is a magic config key and may be omitted in most cases.
36 See "Magic parameters" in nbdkit(1).
37
39 $plugindir/nbdkit-ones-plugin.so
40 The plugin.
41
42 Use "nbdkit --dump-config" to find the location of $plugindir.
43
45 "nbdkit-ones-plugin" first appeared in nbdkit 1.36.
46
48 nbdkit(1), nbdkit-plugin(3), nbdkit-data-plugin(1),
49 nbdkit-full-plugin(1), nbdkit-null-plugin(1), nbdkit-pattern-plugin(1),
50 nbdkit-random-plugin(1). nbdkit-sparse-random-plugin(1),
51 nbdkit-zero-plugin(1).
52
54 Richard W.M. Jones
55
57 Copyright Red Hat
58
60 Redistribution and use in source and binary forms, with or without
61 modification, are permitted provided that the following conditions are
62 met:
63
64 • Redistributions of source code must retain the above copyright
65 notice, this list of conditions and the following disclaimer.
66
67 • Redistributions in binary form must reproduce the above copyright
68 notice, this list of conditions and the following disclaimer in the
69 documentation and/or other materials provided with the
70 distribution.
71
72 • Neither the name of Red Hat nor the names of its contributors may
73 be used to endorse or promote products derived from this software
74 without specific prior written permission.
75
76 THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY
77 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
78 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
79 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE
80 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
81 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
82 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
83 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
84 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
85 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
86 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
87
88
89
90nbdkit-1.36.2 2023-11-26 nbdkit-ones-plugin(1)