summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMax Reitz2015-02-25 19:08:32 +0100
committerPaolo Bonzini2015-03-18 12:07:11 +0100
commit48c7d80de8863e3436b3b5d5676018b2afaec161 (patch)
treeea852d59333bedc0694878f566b265479c66352b /scripts
parentnbd: Fix nbd_receive_options() (diff)
downloadqemu-48c7d80de8863e3436b3b5d5676018b2afaec161.tar.gz
qemu-48c7d80de8863e3436b3b5d5676018b2afaec161.tar.xz
qemu-48c7d80de8863e3436b3b5d5676018b2afaec161.zip
nbd: Fix interpretation of the export flags
The export flags are a 16 bit value, so be16_to_cpu() has to be used to interpret them correctly. This makes discard and flush actually work for named NBD exports (they did not work before, because the client always assumed them to be unsupported because of the bug fixed by this patch). Signed-off-by: Max Reitz <mreitz@redhat.com> Message-Id: <1424887718-10800-20-git-send-email-mreitz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions