nbdkit-ones-plugin(1)

πŸ’… nbdkit-ones-plugin πŸ’…

okay bestie, so this page lives in the NBDKIT manual, and it's literally all about nbdkit-ones-plugin β€” the plugin that's just... ones. 0xff vibes only. no cap. 🫢


✨ NAME ✨

nbdkit-ones-plugin β€” an nbdkit plugin filled with repeated 0xff or other bytes

like. that's it. that's the plugin. a whole plugin that's just the same byte over and over. iconic behavior honestly. πŸ‘‘


🌸 SYNOPSIS 🌸

nbdkit ones [[size=]SIZE] [byte=N]

πŸ¦‹ DESCRIPTION πŸ¦‹

so nbdkit-ones-plugin is a plugin for nbdkit(1). Any read you throw at it returns a repeating pattern of 0xff (all ones) bytes, or another repeating byte if you use the byte parameter instead. and literally everything you write to that virtual device? discarded. gone. not stored. it just falls into the void bestie πŸ’€

most NBD consumers are gonna be very confused by this device. like, deeply confused. it is mainly useful for testing. and if you want a modifiable RAM disk that's initialized with fixed data, that's a different vibe entirely β€” go use nbdkit-data-plugin(1) for that. πŸŽ€


πŸŽ€ PARAMETERS πŸŽ€

  • byte=N β€” sets the repeating byte to N. the default is 0xff (all ones, the moment).
ngl, instead of byte=0 it's more efficient to use nbdkit-null-plugin(1). just saying. efficiency queen behavior.
  • [size=]SIZE β€” specify the virtual size of the disk image.

this parameter is optional. if you omit it, a zero-sized device is created. (yes, zero. a little nothing device. adorable.) πŸ™ˆ

the size= prefix may be omitted in most cases. see "Magic parameters" in nbdkit(1) for the whole tea. ✨


🧚 FILES 🧚

  • $plugindir/nbdkit-ones-plugin.so β€” the plugin itself, the star of the show ⭐

use nbdkit --dump-config to find the location of $plugindir. iykyk.


🌈 VERSION 🌈

nbdkit-ones-plugin first appeared in nbdkit 1.36. a legend was born. periodt. πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

nbdkit(1), nbdkit-plugin(3), nbdkit-data-plugin(1), nbdkit-full-plugin(1), nbdkit-null-plugin(1), nbdkit-pattern-plugin(1), nbdkit-random-plugin(1). nbdkit-sparse-random-plugin(1), nbdkit-zero-plugin(1).

(the whole plugin friend group honestly. they all ate. πŸ”₯)


πŸ’œ AUTHORS πŸ’œ

Richard W.M. Jones


Copyright Red Hat


πŸ“ LICENSE πŸ“

redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Red Hat nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

and that's the whole page bestie!! πŸ₯³ this version of the manual is from nbdkit-1.48.1, dated 2026-08-29. go forth and be ones. 0xff 0xff 0xff forever. mwah πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from