block/raw-posix: avoid bogus fixup for cylinders on DASD disks
commit972b543c6b63579aee590b738d21af09f01569f7
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 14 Dec 2015 15:41:19 +0000 (14 16:41 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 19 Jan 2016 16:43:55 +0000 (19 17:43 +0100)
tree919e289b977097dbad1451268ad6f59b2a213e11
parent82dc8b411040fa8a7418a012ff39b8d06f68e639
block/raw-posix: avoid bogus fixup for cylinders on DASD disks

large volume DASD that have > 64k cylinders do claim to have
0xFFFE cylinders as special value in the old 16 bit field. We
want to pass this "token" along to the guest, instead of
calculating the real number. Otherwise qemu might fail with
"cyls must be between 1 and 65535"

Cc: qemu-stable@nongnu.org
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c