[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM sup
From: |
Rob Landley |
Subject: |
Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support |
Date: |
Fri, 4 Jan 2008 21:53:09 -0600 |
User-agent: |
KMail/1.9.6 (enterprise 0.20070907.709405) |
On Friday 04 January 2008 19:02:30 Stuart Brady wrote:
> On Fri, Jan 04, 2008 at 06:25:25PM -0600, Rob Landley wrote:
> > On Friday 04 January 2008 04:02:07 Carlo Marcelo Arenas Belon wrote:
> > > > - buf[7] = total_sectors <= 1433600 ? 0x08 : 0x10; /*
> > > > current profile */
> >
> > Where does the constant come from, anyway?
>
> 1433600? Seems it's the number of 512 KiB blocks in a 700 MiB CD image
> (700 * 1024 * 2).
Except that according to http://en.wikipedia.org/wiki/CD-ROM it's actually 703
and 1/8 binary megabytes (360,000 sectors *2048 bytes), which would be
1440000.
And we all know wikipedia's never wrong:
http://www.theonion.com/content/node/50902
Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Carlo Marcelo Arenas Belon, 2008/01/04
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Rob Landley, 2008/01/04
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Stuart Brady, 2008/01/04
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Stuart Brady, 2008/01/04
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Carlo Marcelo Arenas Belon, 2008/01/04
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support,
Rob Landley <=
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Stuart Brady, 2008/01/05
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Carlo Marcelo Arenas Belon, 2008/01/05
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Stuart Brady, 2008/01/06
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Andreas Färber, 2008/01/06
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Carlo Marcelo Arenas Belon, 2008/01/06
- Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Carlo Marcelo Arenas Belon, 2008/01/06
Re: [Qemu-devel] [RESEND] [PATCH] ide: fix GET_CONFIGURATION DVD-ROM support, Carlo Marcelo Arenas Belon, 2008/01/04