nbdkit-openonce-filter(1)
β¨ nbdkit-openonce-filter β¨
okay bestie, so this is a page from the NBDKIT manual, and today we're doing nbdkit-openonce-filter(1). yes that's the whole name. it's long. she's iconic. let's go π
πΈ NAME πΈ
nbdkit-openonce-filter β open the underlying plugin once. that's it. that's the whole vibe. one (1) open. no cap π«Ά
π¦ SYNOPSIS π¦
nbdkit --filter=openonce PLUGIN
π DESCRIPTION π
so nbdkit-openonce-filter is a filter for nbdkit(1) and what it does is β you guessed it β open the underlying plugin once. per export. literally one time. π
when is this the move? when your plugin is slow to open/connect, like nbdkit-ssh-plugin(1) or nbdkit-vddk-plugin(1). those girlies take forever to wake up, and you're not about to sit there waiting every single time. so you open once and keep it. main character energy. β¨
but ok, we have to be real, because i love you and i would never lie to you. there are some disadvantages:
- Multiple NBD clients may be sharing one connection to the plugin, which might cause performance issues. π like, everybody crammed into one lil connection. it's giving group project.
- The plugin stays open until nbdkit shuts down. she does not leave. she lives there now. π
- This defeats multi-conn. if nbdkit advertises multi-conn, NBD clients may make multiple connections but will end up connecting to the same underlying plugin instance. so you think you're getting parallel connections but bestie you are not. (also go look at
nbdkit-multi-conn-filter(1)if that's the energy you actually want.)
π PARAMETERS π
There are no parameters specific to nbdkit-openonce-filter.
none. zero. zilch. nothing bespoke for this filter, periodt.
any parameters you do pass get passed through to and processed by the underlying plugin in the normal way. so whatever the plugin wants, the plugin gets. π«Ά
π FILES π
$filterdir/nbdkit-openonce-filter.soβ the filter itself, the actual girlboss file. π- use
nbdkit --dump-configto find the location of$filterdir. yes, literally run that. iykyk. β¨
- use
β VERSION β
nbdkit-openonce-filter first appeared in nbdkit 1.44. baby girl is relatively new, be nice to her πΈ
π SEE ALSO π
the whole squad, go read them, they're all slaying in their own way:
nbdkit(1)nbdkit-cache-filter(1)nbdkit-multi-conn-filter(1)nbdkit-retry-filter(1)nbdkit-curl-plugin(1)nbdkit-ssh-plugin(1)nbdkit-vddk-plugin(1)nbdkit-filter(3)
π AUTHORS π
Richard W.M. Jones β thank you king, we owe you everything π«Ά
π§ COPYRIGHT π§
Copyright Red Hat
π LICENSE π
ok so here's the legal bit, and i'm not gonna water it down because this is the part where you actually have to pay attention, bestie. 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.
like, it's AS IS. all caps. i don't make the rules, i just relay them dramatically. π
and that's the page!! mwah π this one came from nbdkit-1.48.1, dated 2026-08-29 β so if you're reading this from the future, hi, hope the filter's still slaying. bye bestie, go open something exactly once πβ¨ππ¦
π¦ where this page comes from
- fedora 44: nbdkit-basic-filters 1.48.1-1.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms