summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2017-04-06 17:02:01 -0400
committerJens Axboe <axboe@fb.com>2017-04-17 09:58:42 -0600
commitb7aa3d39385dc2d95899f9e379623fef446a2acd (patch)
treeff0ff044ec1668138af9082d24305de7149b3628 /include
parente46c7287b1c27683a8e30ca825fb98e2b97f1099 (diff)
downloadlinux-b7aa3d39385dc2d95899f9e379623fef446a2acd.tar.bz2
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. Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nbd-netlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/nbd-netlink.h b/include/uapi/linux/nbd-netlink.h
index fd0f4e45f03e..f932f96a7c2f 100644
--- a/include/uapi/linux/nbd-netlink.h
+++ b/include/uapi/linux/nbd-netlink.h
@@ -62,6 +62,7 @@ enum {
NBD_CMD_UNSPEC,
NBD_CMD_CONNECT,
NBD_CMD_DISCONNECT,
+ NBD_CMD_RECONFIGURE,
__NBD_CMD_MAX,
};
#define NBD_CMD_MAX (__NBD_CMD_MAX - 1)