Description of problem: Burning DVD media using growisofs sometimes fails, burning BD-RE media, however, succeeds. The following error message while writing on DVD-RW media /dev/sr0: "Current Write Speed" is 4.1x1352KBps. :-[ WRITE@LBA=350h failed with SK=0h/ASC=00h/ACQ=03h]: Input/output error :-( write failed: Input/output error /dev/sr0: flushing cache Version-Release number of selected component (if applicable): dvd+rw-tools-7.1-5.fc14.x86_64 How reproducible: Only with iso images that has different size than a multiple of 32k Steps to Reproduce: 1. Create an iso image, that has NOT size of multiple of 32k 2. growisofs -Z /dev/sr0=/path/to/your.iso Actual results: The following error is displayed during burn: :-[ WRITE@LBA=350h failed with SK=0h/ASC=00h/ACQ=03h]: Input/output error :-( write failed: Input/output error However, the medium seems to be burned correctly. Expected results: No error. Additional info: After several kernel versions and more optical drives have been tested it seems there's no difference. Thus, it seems to be a bug in growisofs.
Created attachment 575723 [details] proposed patch - align blocks count to multiple of 16 When burning DVD media in DAO mode, reserved blocks count wasn't align to multiple of 16 (which means space of 32kB). However, only 32kB blocks were being written to the media, so I suppose the error was triggered by the drive complaining that we were writing the last block outside the reserved area boundaries.
dvd+rw-tools-7.1-8.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/dvd+rw-tools-7.1-8.fc17
dvd+rw-tools-7.1-8.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/dvd+rw-tools-7.1-8.fc16
dvd+rw-tools-7.1-8.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/dvd+rw-tools-7.1-8.fc15
Package dvd+rw-tools-7.1-8.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dvd+rw-tools-7.1-8.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-5451/dvd+rw-tools-7.1-8.fc17 then log in and leave karma (feedback).
Created attachment 579002 [details] proposed patch - allow the written chunk to be smaller than multiple of 16 blocks I've discussed this bug with Thomas, author of libburn, since dvd+rw-tools upstream is not very active for some time. The original patch would work, but DAO session does not need to be aligned to 16 blocks necessarily according to standard. What's more, for the sake of ISO image verification it is desirable to have a DVD session of exactly the image size. Current version doesn't comply with that, because the buffer size passed into WRITE command is aligned to 16 blocks every-time. This patch sets the buffer size to exactly the number of blocks to be written, which fixes the reported bug.
Updates above have been replaced by the following, which use the patch from comment #6: https://admin.fedoraproject.org/updates/dvd+rw-tools-7.1-9.fc17 https://admin.fedoraproject.org/updates/dvd+rw-tools-7.1-9.fc16 https://admin.fedoraproject.org/updates/dvd+rw-tools-7.1-9.fc15
dvd+rw-tools-7.1-9.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
dvd+rw-tools-7.1-9.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
dvd+rw-tools-7.1-9.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.