Date: Mon, 12 May 2008 02:19:04 -0300 From: "Carlos A. M. dos Santos" <unixmania@gmail.com> To: freebsd-stable@freebsd.org Subject: burncd: ioctl(CDIOCEJECT): Input/output error Message-ID: <e71790db0805112219v21019de6h3f0cc2a36dfe2563@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
------=_Part_1689_32867670.1210569544557 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I get "burncd: ioctl(CDIOCEJECT): Input/output error" each time I attempt to blank a CDRW with burncd -f /dev/acd0 blank eject I noticed that this does not happen when I write a data cd with burncd -f /dev/acd0 data cd-image.iso fixate eject I have seen the same bahavior on 4 different computers that have DVD-RW units. Applying the attached patch to /usr/src/usr.sbin/burncd/burncd.c solves the problem. It make burncd attempt to eject the CD five times, sleeping for one second after each unccessful try. I'd like to get some opinions on this before submitting a PR. Thanks in advance. -- Carlos A. M. dos Santos ------=_Part_1689_32867670.1210569544557 Content-Type: application/octet-stream; name=burncd_eject.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fg4ltas60 Content-Disposition: attachment; filename=burncd_eject.patch LS0tIGJ1cm5jZC5jLm9yaWcJMjAwNS0wNS0xMyAxNzowNjo0NC4wMDAwMDAwMDAgLTAzMDAKKysr IGJ1cm5jZC5jCTIwMDgtMDUtMTIgMDE6NDQ6MzAuMDAwMDAwMDAwIC0wMzAwCkBAIC00Niw2ICs0 Niw3IEBACiAjaW5jbHVkZSA8YXJwYS9pbmV0Lmg+CiAKICNkZWZpbmUgQkxPQ0tTCTE2CisjZGVm aW5lIEVKRUNUX1RSSUVTIDUKIAogc3RydWN0IHRyYWNrX2luZm8gewogCWludAlmaWxlOwpAQCAt MzE2LDkgKzMxNywxMyBAQAogCQllcnIoRVhfSU9FUlIsICJpb2N0bChDRFJJT0NTRVRCTE9DS1NJ WkUpIik7CiAJfQogCi0JaWYgKGVqZWN0KQotCQlpZiAoaW9jdGwoZmQsIENESU9DRUpFQ1QpIDwg MCkKKwlpZiAoZWplY3QpIHsKKwkJaW50IHN0YXR1cywgaSA9IDA7CisJCXdoaWxlICgoc3RhdHVz ID0gaW9jdGwoZmQsIENESU9DRUpFQ1QpKSA8IDAgJiYgKytpIDw9IEVKRUNUX1RSSUVTKQorCQkJ c2xlZXAoMSk7CisJCWlmIChzdGF0dXMgPCAwKQogCQkJZXJyKEVYX0lPRVJSLCAiaW9jdGwoQ0RJ T0NFSkVDVCkiKTsKKwl9CiAJY2xvc2UoZmQpOwogCWV4aXQoRVhfT0spOwogfQo= ------=_Part_1689_32867670.1210569544557--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e71790db0805112219v21019de6h3f0cc2a36dfe2563>