nbdkit-example3-plugin1
Example nbdkit plugin
Usage
nbdkit example3
[size=SIZE]
Examples
nbdkit example3 size=1G
guestfish --ro --format=raw -a nbd://localhost
Overview
"nbdkit-example3-plugin" is an example nbdkit(1) plugin.
On each connection, it generates a temporary writable block device of size "SIZE". The disk is thrown away when the client disconnects.
The "size=SIZE" parameter can use a number of common formats to specify the size, eg. "100M", "2G". If the parameter is omitted, it defaults to 100M.
Mainly this is useful for testing nbdkit and as an example for writing nbdkit plugins (nbdkit-plugin(3)).
Files
-
$plugindir/nbdkit-example3-plugin.so
-
The plugin.
Use "nbdkit --dump-config" to find the location of $plugindir.
Version
"nbdkit-example3-plugin" first appeared in nbdkit 1.0.
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.
-
8
-
9
-
10
-
11
-
12
-
13