]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nbd: add set flags ioctl
authorPaul Clements <paul.clements@steeleye.com>
Wed, 26 Sep 2012 01:34:59 +0000 (11:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:28:59 +0000 (17:28 +1000)
commit2e641b262b4e38f714f8ea11b46ef8cf7d57fbbf
tree8c153fc03dc24c28ab658e6c2de1d3ae5cb8d6f3
parentd3839ad523ad645501991e39e264139cc9d80589
nbd: add set flags ioctl

Add a set-flags ioctl, allowing various option flags to be set on an nbd
device.  This allows the nbd-client to set the device flags (to enable
read-only mode, or enable discard support, etc.).

Flags are typically specified by the nbd-server.  During the negotiation
phase of the nbd connection, the server sends its flags to the client.
The client then uses NBD_SET_FLAGS to inform the kernel of the options.

Also included is a one-line fix to debug output for the set-timeout ioctl.

Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/nbd.c
include/linux/nbd.h