block: detect DKIOCGETBLOCKCOUNT/SIZE before use
authorJoelle van Dyne <j@getutm.app>
Mon, 15 Mar 2021 18:03:40 +0000 (11:03 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jun 2021 08:54:13 +0000 (10:54 +0200)
commit09e20abddaf94ff27dcced1df81f69a713627a94
tree5ee60f589f172455e6cc140d18282beef1a78931
parent267cd53f5fbbbf9bdf18c526144ab0bd22ab40f8
block: detect DKIOCGETBLOCKCOUNT/SIZE before use

iOS hosts do not have these defined so we fallback to the
default behaviour.

Co-authored-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Joelle van Dyne <j@getutm.app>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/file-posix.c