On 24.06.21 20:04, Paolo Bonzini wrote:
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 <pbonz...@redhat.com> --- block/file-posix.c | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-)
Thanks, that’s much better. Reviewed-by: Max Reitz <mre...@redhat.com>