From: Eric Blake <eblake@redhat.com>
To: John Snow <jsnow@redhat.com>, qemu-block@nongnu.org
Cc: kwolf@redhat.com, armbru@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v5 10/12] fdc: rework pick_geometry
Date: Mon, 25 Jan 2016 10:48:46 -0700 [thread overview]
Message-ID: <56A65FFE.4070906@redhat.com> (raw)
In-Reply-To: <56A2982E.1060104@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]
On 01/22/2016 01:59 PM, John Snow wrote:
>
>
> On 01/22/2016 03:51 PM, John Snow wrote:
>> This one is the crazy one.
>>
>> fd_revalidate currently uses pick_geometry to tell if the diskette
>> geometry has changed upon an eject/insert event, but it won't allow us
>> to insert a 1.44MB diskette into a 2.88MB drive. This is inflexible.
>>
>> The new algorithm applies a new heuristic to guessing disk geometries
>> that allows us to switch diskette types as long as the physical size
>> matches before falling back to the old heuristic.
>>
>> The old one is roughly:
>> - If the size (sectors) and type matches, choose it.
>> - Fall back to the first geometry that matched our type.
>>
>> The new one is:
>> - If the size (sectors) and type matches, choose it.
>> - If the size (sectors) and physical size match, choose it.
>> - If the size (sectors) matches at all, choose it begrudgingly.
>> - Fall back to the first geometry that matched our type.
>>
>
> Goofed and didn't update commit. Will change on PULL to omit the third
> line if the patch is otherwise OK.
Yep, that's the only thing I noticed.
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-01-25 17:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-22 20:50 [Qemu-devel] [PATCH v5 00/12] fdc: fix 2.88mb floppy diskette support John Snow
2016-01-22 20:50 ` [Qemu-devel] [PATCH v5 01/12] fdc: move pick_geometry John Snow
2016-01-22 20:50 ` [Qemu-devel] [PATCH v5 02/12] fdc: reduce number of pick_geometry arguments John Snow
2016-01-22 20:50 ` [Qemu-devel] [PATCH v5 03/12] fdc: add drive type qapi enum John Snow
2016-01-22 20:50 ` [Qemu-devel] [PATCH v5 04/12] fdc: add disk field John Snow
2016-01-22 20:50 ` [Qemu-devel] [PATCH v5 05/12] fdc: Throw an assertion on misconfigured fd_formats table John Snow
2016-01-22 20:50 ` [Qemu-devel] [PATCH v5 06/12] fdc: add pick_drive John Snow
2016-01-22 20:51 ` [Qemu-devel] [PATCH v5 07/12] fdc: Add fallback option John Snow
2016-01-22 20:51 ` [Qemu-devel] [PATCH v5 08/12] fdc: add drive type option John Snow
2016-01-22 20:51 ` [Qemu-devel] [PATCH v5 09/12] fdc: add physical disk sizes John Snow
2016-01-22 20:51 ` [Qemu-devel] [PATCH v5 10/12] fdc: rework pick_geometry John Snow
2016-01-22 20:59 ` John Snow
2016-01-25 17:48 ` Eric Blake [this message]
2016-01-22 20:51 ` [Qemu-devel] [PATCH v5 11/12] qtest/fdc: Support for 2.88MB drives John Snow
2016-01-22 20:51 ` [Qemu-devel] [PATCH v5 12/12] fdc: change auto fallback drive for ISA FDC to 288 John Snow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56A65FFE.4070906@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.