nbd: support NBD_SET_FLAGS ioctl
commit973b3d0a7b2823f510e948283284f103ede43c49
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 Sep 2011 15:24:56 +0000 (8 17:24 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 19 Sep 2011 09:34:33 +0000 (19 11:34 +0200)
tree4fc8a059aeb18ff2ecaf7ee4ec66c9c735555d16
parentbbb74edd405bee8cf29957ef781294f40f02d4c6
nbd: support NBD_SET_FLAGS ioctl

The nbd kernel module cannot enable DISCARD requests unless it is
informed about it.  The flags field in the header is used for this,
and this patch adds support for it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
nbd.c