[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo |
Date: |
Thu, 30 May 2019 00:10:10 +0200 |
User-agent: |
Mutt/1.11.3 (2019-02-01) |
Am 24.05.2019 um 19:28 hat Max Reitz geschrieben:
> This enum indicates whether a file is stored on a rotating disk or a
> solid-state drive. Drivers report it via the .bdrv_get_info() callback,
> and if they do not, the global bdrv_get_info() implementation
> automatically takes it from bs->file or bs->backing, if available.
Good that you wrote "bs->file or bs->backing" explicitly. Otherwise, I
might have missed that it begs one big question: What is the correct
answer for a qcow2 file that has bs->file on an SSD, but bs->backing on
a rotating disk?
I don't think there is a correct answer for the whole device, so maybe
this information shouldn't be per device in BlockDriverInfo, but per
block in bdrv_co_block_status() (optionally determined if the caller
requests it)?
Kevin
- [Qemu-devel] [RFC 0/3] block: Inquire images’ rotational info, Max Reitz, 2019/05/24
- [Qemu-devel] [RFC 3/3] qcow2: Evaluate rotational info, Max Reitz, 2019/05/24
- [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo, Max Reitz, 2019/05/24
- Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo, Alberto Garcia, 2019/05/26
- Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo, Max Reitz, 2019/05/27
- Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo, Alberto Garcia, 2019/05/27
- Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo, Max Reitz, 2019/05/27
- Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo, Anton Nefedov, 2019/05/27
- Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo, Max Reitz, 2019/05/27
- Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo, Alberto Garcia, 2019/05/27
Re: [Qemu-devel] [RFC 1/3] block: Add ImageRotationalInfo,
Kevin Wolf <=
[Qemu-devel] [RFC 2/3] file-posix: Inquire rotational status, Max Reitz, 2019/05/24
Re: [Qemu-devel] [RFC 0/3] block: Inquire images’ rotational info, Eric Blake, 2019/05/24