History

nbd: add a reconfigure netlink command

We want to be able to reconnect dead connections to existing block devices, so add a reconfigure netlink command. We will also allow users to change their timeout on the fly, but everything else will require a disconnect and reconnect. You won't be able to add more connections either, simply replace dead connections with new more lively connections.

Josef Bacik committed 9 years ago

Commit b7aa3d31 parent e46c7282 files · +142 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/nbd-netlink.h+1−0
@@ -62,6 +62,7 @@ enum { · 61 unmodified lines
62 NBD_CMD_UNSPEC,62 NBD_CMD_UNSPEC,
63 NBD_CMD_CONNECT,63 NBD_CMD_CONNECT,
64 NBD_CMD_DISCONNECT,64 NBD_CMD_DISCONNECT,
65 NBD_CMD_RECONFIGURE,
65 __NBD_CMD_MAX,66 __NBD_CMD_MAX,
66};67};
67#define NBD_CMD_MAX (__NBD_CMD_MAX - 1)68#define NBD_CMD_MAX (__NBD_CMD_MAX - 1)