]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nbd: add set flags ioctl
authorPaul Clements <paul.clements@steeleye.com>
Thu, 13 Sep 2012 01:01:32 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Sep 2012 10:46:21 +0000 (20:46 +1000)
commitf833afb60a6788fbb1b79036846db49944df773f
treea5d580a12832c23dcef3a4f170fe3525fcfe3816
parent68a76a3ccbfbb04880a46e0572f18d4b1e094aff
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