From owner-freebsd-stable@FreeBSD.ORG Mon May 12 05:43:59 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A948106564A for ; Mon, 12 May 2008 05:43:59 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id A26318FC16 for ; Mon, 12 May 2008 05:43:58 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ug-out-1314.google.com with SMTP id q2so635176uge.37 for ; Sun, 11 May 2008 22:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=8iSihGLv1aguPViBR8fYdUN3qfiOAGpQ/r4bqPk3Low=; b=u3cCsaIDuGggP62vcnMLqD7Yxn8XhS9bvSvQwvT50l8zUVLT9L6wtVGtu7qWHxeZbpWdHWKOFMxfmixu4nANyfXJGlKqEp5XGee13L5Nr8gu/FFsF5pWdmfkqb/A9CzOAtX+/vUxJYk8rZfxvAHijfdif/CwQNGFdoCiSoUrpII= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=q0VSzlVrLRy0PBzJVrA3YTpEBmZX0w6bHQOnRrs02uW8RwkJJuYNpeplH4jfLbYhYrWfG/QaELTqBO9g7ls4t3QV+7Xr7zauVijJJoW1ef513iJNFxeuNObM82aJ3dW+lO4nqhUuTsdErnnTLDcWOt6P4qZgewa/Q2Zl2j9x+Fk= Received: by 10.66.217.20 with SMTP id p20mr5075433ugg.51.1210569544564; Sun, 11 May 2008 22:19:04 -0700 (PDT) Received: by 10.67.98.5 with HTTP; Sun, 11 May 2008 22:19:04 -0700 (PDT) Message-ID: Date: Mon, 12 May 2008 02:19:04 -0300 From: "Carlos A. M. dos Santos" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1689_32867670.1210569544557" Subject: burncd: ioctl(CDIOCEJECT): Input/output error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 05:43:59 -0000 ------=_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--