[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 0/2] Add support for setting netlink backend string



Stefan Hajnoczi pointed out to me that since kernel 5.14 (commit
6497ef8d in Apr 2021), the netlink interface has allowed userspace to
pass in an arbitrary backend string visible at
/sys/block/nbdN/backend, and which prevents the abuse of netlink to
arbitrarily reconfigure an active NBD connection to a different
backend, for some added safety when multiple threads might be racing
to create NBD devices.  Time to expose it in nbd-client, along with
first fixing some regressions along the way.

Eric Blake (2):
  nbd-client: Fix use without -N
  nbd-client: Add support for setting /sys/block/nbdN/backend

 .gitignore               |  1 +
 man/nbd-client.8.sgml.in | 24 +++++++++++++++++++++++-
 nbd-client.c             | 30 ++++++++++++++++++++++++------
 nbd-netlink.h            |  7 +++++--
 4 files changed, 53 insertions(+), 9 deletions(-)

-- 
2.47.0


Reply to: