From owner-freebsd-stable@FreeBSD.ORG Sat Jul 26 22:04:07 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 7D090106567A for ; Sat, 26 Jul 2008 22:04:07 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 0A7628FC16 for ; Sat, 26 Jul 2008 22:04:06 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ug-out-1314.google.com with SMTP id q2so90981uge.37 for ; Sat, 26 Jul 2008 15:04:05 -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:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=IhEwesOfaPpIYCWJ7mezXON4KttzljZQMUCmos/u6yQ=; b=lPVKapKfIFJh5s0gn9bdvlMEDiUK0xAHiDE0DPgRgtgqeWEI+mLNlGky+mNsZTQfFv u3375To0Suyq6rwQuHHCW0nTl7edaQP81+hJ1g47NsTCgX0N4+niLn0FUMnZKXkc7wT6 MCih7qCHUGmWNQTYFBoYO0HYOmMyWHcsWS/nA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=uLsZFDl3p+UFcojpjGwveP0eyaz/284p3HjV6IvKMr5kk51Rc7s1JrRkTAUaw4w2PH av9C6NpTf5Et97VPWdfUbJ1NeFrGY2+eTytnvxNl0FaJMqttlOWJSwWm7Hid3wgjKAfi yOHCNrT7WWRpAbbnUNBk3IEMB6hSAMq66V7k4= Received: by 10.67.101.17 with SMTP id d17mr1034256ugm.40.1217109845504; Sat, 26 Jul 2008 15:04:05 -0700 (PDT) Received: by 10.66.234.1 with HTTP; Sat, 26 Jul 2008 15:04:05 -0700 (PDT) Message-ID: Date: Sat, 26 Jul 2008 19:04:05 -0300 From: "Carlos A. M. dos Santos" To: Volker In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <482F31E7.7080000@vwsoft.com> Cc: FreeBSD Stable , bug-followup@freebsd.org Subject: Re: bin/123693: Workaround for 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: Sat, 26 Jul 2008 22:04:07 -0000 On Mon, May 26, 2008 at 1:21 AM, Carlos A. M. dos Santos wrote: > On Mon, May 19, 2008 at 9:27 AM, Carlos A. M. dos Santos > wrote: >> On Sat, May 17, 2008 at 4:28 PM, Volker wrote: >>> Carlos, >>> >>> IMHO it's better to explicitly check for ioctl returning EBUSY and 5 >>> seconds may not fit every situation. >>> >>> Volker >> >> Ok, I will attempt the approach of checking for EBUSY. > > I found that ioctl(fd, CDIOCEJECT) returns EIO, not EBUSY, so it seems > that there is no better solution. I was able to improve the delays, > however (see attachmet). Now they grow exponentially, limited to 31 > seconds (1 + 2 + 4 + 8 + 16). This is better than flooding the CD > drive with one eject request per second. Any update on this issue? I'd suggest you to at least close the PR if the proposed patch is not acceptable. I must admit that it is only a tricky workaround, not a masterpiece, so I will not feel offended. :-) -- If you think things can't get worse it's probably only because you lack sufficient imagination.