nbd: add a status netlink command
authorJosef Bacik <josef@toxicpanda.com>
Thu, 6 Apr 2017 21:02:05 +0000 (17:02 -0400)
committerJens Axboe <axboe@fb.com>
Mon, 17 Apr 2017 15:58:42 +0000 (09:58 -0600)
commit47d902b90a32a42a3d33aef3a02170fc6f70aa23
tree194a8be4a065ee133d1ea3f035eb11ffe2ba0af7
parent560bc4b39952ed77cdb0000992e9415b0ee89edb
nbd: add a status netlink command

Allow users to query the status of existing nbd devices.  Right now this
only returns whether or not the device is connected, but could be
extended in the future to include more information.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c
include/uapi/linux/nbd-netlink.h