Commit e7fdffde authored by Richard W.M. Jones's avatar Richard W.M. Jones
Browse files

file: Allow a file descriptor to be passed to the plugin

This allows you to pass in a file descriptor to the plugin, eg:

  $ exec 6<>/var/tmp/fedora-36.img
  $ ./nbdkit file fd=6 --run 'nbdinfo $uri'

Note this was previously possible on most platforms using /dev/fd/<N>,
but not all platforms that have file descriptors support this and it
seems better to make both the feature and its use explicit.

Thanks: Eric Blake
parent 17655b1c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment