aboutsummaryrefslogtreecommitdiff
path: root/tci.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-05-11 16:39:40 -0600
committerPaolo Bonzini <pbonzini@redhat.com>2016-06-16 18:39:05 +0200
commitf57e2416aaeb39c32946d282768ece7ff619b423 (patch)
tree8639bbec9008f7383d80207c9b286976898b4a72 /tci.c
parent98494e3b926ad62c5644fd84a37f04b5e7abb7a6 (diff)
downloadqemu-f57e2416aaeb39c32946d282768ece7ff619b423.zip
qemu-f57e2416aaeb39c32946d282768ece7ff619b423.tar.gz
qemu-f57e2416aaeb39c32946d282768ece7ff619b423.tar.bz2
nbd: Clean up ioctl handling of qemu-nbd -c
The kernel ioctl() interface into NBD is limited to 'unsigned long'; we MUST pass in input with that type (and not int or size_t, as there may be platform ABIs where the wrong types promote incorrectly through var-args). Furthermore, on 32-bit platforms, the kernel is limited to a maximum export size of 2T (our BLKSIZE of 512 times a SIZE_BLOCKS constrained by 32 bit unsigned long). Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1463006384-7734-8-git-send-email-eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tci.c')
0 files changed, 0 insertions, 0 deletions