Paul Clements 2f01250888 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-06 03:05:23 +09:00
..
2012-10-02 19:01:32 -07:00
2012-10-06 03:05:23 +09:00
2012-10-02 17:26:42 -07:00
2012-10-01 19:11:38 -07:00
2012-09-22 10:29:19 +01:00
2012-09-24 10:07:40 -07:00
2012-10-03 09:44:08 -07:00
2012-10-02 22:09:10 -07:00
2012-10-01 19:11:38 -07:00
2012-10-02 19:01:32 -07:00
2012-10-01 19:11:38 -07:00
2012-10-03 09:44:08 -07:00
2012-10-02 22:09:10 -07:00
2012-10-01 12:09:59 -07:00
2012-10-01 18:19:05 -07:00
2012-10-02 22:09:10 -07:00
2012-10-01 18:46:13 -07:00