OSDN Git Service

block: try BSD disk size ioctls one after another
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Jun 2021 13:32:04 +0000 (15:32 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jun 2021 08:54:13 +0000 (10:54 +0200)
commit267cd53f5fbbbf9bdf18c526144ab0bd22ab40f8
treef1d4c86a2668dc366311adf2b5389b9cfcc2f41e
parentfeccdceed25302e1e3db744d468304705ee7c4dd
block: try BSD disk size ioctls one after another

Try all the possible ioctls for disk size as long as they are
supported, to keep the #if ladder simple.

Extracted and cleaned up from a patch by Joelle van Dyne and
Warner Losh.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/file-posix.c