[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 1/5] atapi: kill MODE SENSE(6), fix MODE SENSE(
From: |
Thomas Schmitt |
Subject: |
[Qemu-devel] Re: [PATCH 1/5] atapi: kill MODE SENSE(6), fix MODE SENSE(10) |
Date: |
Fri, 11 Nov 2011 16:14:24 +0100 |
Hi,
Paolo Bonzini wrote:
> > > case MODE_PAGE_R_W_ERROR: /* error recovery */
> > > [...]
> > > - buf[15] = 0x00;
Kevin Wolf wrote:
> > Why did you drop this? It still seems to be part of the buffer.
Paolo Bonzini wrote:
> Actually, I think it's best if these patches wait until Thomas can give a
> shot at testing them. If that means missing 1.0, so be it.
libburn does not use mode page 1 "Read/Write Error Recovery Parameters".
So can only judge by theory and not by test.
MMC-1 says it has 8 bytes (beginning at buf[8] = MODE_PAGE_R_W_ERROR).
MMC-2 says it has 12. MMC-6 says it has 12.
So buf[15] = 0x00 matches MMC-1 and the announcement made by
buf[9] = 16 - 10; (6 is the number of bytes after buf[9]).
I would advise to keep buf[15] = 0x00.
Have a nice day :)
Thomas
- [Qemu-devel] [PATCH 0/5] scsi/atapi: MMC fixes, Paolo Bonzini, 2011/11/10
- [Qemu-devel] [PATCH 5/5] scsi-block: special case CD burning commands, Paolo Bonzini, 2011/11/10
- [Qemu-devel] [PATCH 3/5] scsi: fix parsing of allocation length field, Paolo Bonzini, 2011/11/10
- [Qemu-devel] [PATCH 2/5] scsi: update list of commands, Paolo Bonzini, 2011/11/10
- [Qemu-devel] [PATCH 4/5] scsi: remove block descriptors from CDs, Paolo Bonzini, 2011/11/10
- [Qemu-devel] [PATCH 0/5] scsi/atapi: MMC fixes, Thomas Schmitt, 2011/11/10
- Re: [Qemu-devel] [PATCH 0/5] scsi/atapi: MMC fixes, Zhi Yong Wu, 2011/11/10