From: Paul Clements Date: Fri, 5 Oct 2012 00:16:15 +0000 (-0700) Subject: nbd: add set flags ioctl X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~12^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f012508880f8037590372c24ca6e8b6af8fffb6;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed