]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nbd: add set flags ioctl
authorPaul Clements <paul.clements@steeleye.com>
Fri, 7 Sep 2012 00:25:09 +0000 (10:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:37 +0000 (15:36 +1000)
commit855575371787b924b9ca0017c3603afa626c883c
tree20fd7518c96874135d4ec618a1b49580e31686c6
parentfd11893f3719e15f6c6cf2cc5dc9a08c2655bfb1
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