]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nbd: add set flags ioctl
authorPaul Clements <paul.clements@steeleye.com>
Fri, 28 Sep 2012 00:22:21 +0000 (10:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Oct 2012 05:04:06 +0000 (15:04 +1000)
commit2823680d19020cfd3f352300b8e878aa684b346e
tree49122fca8dec11236907b9505cf1e4947fc2a9a7
parenta74cf50bcd9bd5a60b5c79265bdbfc0860ab44c8
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